Articles tagged with: Wordpress
Everybody wants to experience having their own domain. Having your own host and be taken cared by professionals need not be expensive.
You’ve made a nice blog with a good design. Getting lots of traffic, huh? Now, consider getting it hacked. Isn’t it unfair? So, follow the steps to make your blog secure and hackerSAFE
STEP 1
Update Update Update!
Tip: Use the latest version of the Wordpress! Its always better as they fix up the Vulnerabilities and make it more safe.
How to: As soon as the new version is available, you’ll be notified on your Wordpress Admin Dashboard. Follow the process form there to update it.
Post Excerpts allows you to view only a part of the Post on the Home page instead of the Full Post.Displaying Excerpts has many advantages in SEO, monetisation and Traffic.Post Excerpt will give an overview to an user about what the post is all about.
The 5 Reasons for why you should use an Post Excerpt.
1 ) SEO : Google considers any similar text as duplicate content.So, if you display any post as full content on the home page as well as in the archive then, this will add to the [...]
Here are the snippets of code I’ve managed to collect. If you have any WordPress code you’d like me to add, please leave a comment below!
Display Recent Posts
Here is the code you need to display the most recent 5 posts:
<?php query_posts(’showposts=5′); ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li><a href=”<?php the_permalink() ?>”><?php the_title(); ?></a></li>
<?php endwhile;?>
</ul>
Display Recently Updated Posts/Pages
<?php
$today = current_time(’mysql’, 1);
$howMany = 5; //Number of posts you want to display
if ( $recentposts = $wpdb->get_results(”SELECT ID, post_title FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_modified_gmt < ‘$today’ ORDER BY post_modified_gmt DESC LIMIT $howMany”)):
?>
<h2><?php [...]
Open comments.php and find the following line:
<?php foreach ($comments as $comment) : ?>
Just above this line, initialize a counter variable:
<?php $i = 0; ?>
Just after this line, increment the counter:
<?php $i++; ?>
So, your code will look like this
<?php $i = 0; ?>
<?php foreach ($comments as $comment) : ?>
<?php $i++; ?>
Now, you just have to echo the $i variable to get the number of the current comment. Paste this code anywhere on your comments loop:
<?php echo $i; ?>
Your comments are now numbered!
Feel free to ask Help !
Webaddict-Reinvented is a somewhat clean layout. It uses Mootool’s Accordion for the posts and GD image for the titles.
The sidebar is actually a bottom bar just above the footer. And to top it off, there is a link in the footer to collapse it.
Features…
A quick run down of the features:
Contains search, author, and links page templates.
Mootool Accordion for bulk post display.
Collapsible/expandable sidebar.
XHTML1.0 Transitional
Sidebar is above footer, and has 3 columns.
GD Image Titles (Can be disabled via Theme Options Page)
This theme was tested in IE7, IE6, Firefox 1.5, and [...]
