23 Aug 2010Posted by admin
If you want to add some custom content at the end of every post (for example, the author info) then copy the following code and paste it in the “functions.php” file of your theme. function add_post_content($content) { if(!is_feed() && !is_home()) { $content .= '<p>This article is written by '.the_author(); } return $content; } add_filter('the_content', 'add_post_content'); Now the custom content from the “add_post_content” function will be inserted below each of your posts.
2 Aug 2010Posted by admin
To randomize posts order, you simply have to use the query_posts() function before the WordPress loop like the following: <?php query_posts('orderby=rand'); ?> <?php //WordPress loop goes here ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
30 Jul 2010Posted by admin
By default the WordPress’s admin login looks like the following: If you want to change the logo to customize it then add the following piece of code to the “functions.php” file of your WordPress theme: add_action('login_head', 'wp_custom_login_logo'); function wp_custom_login_logo() { echo '<style type="text/css">'; echo 'h1 a { background-image:url('.get_bloginfo('template_directory').'/images/my-logo.gif) !important; }'; echo '</style>'; } Make sure to upload your custom logo (my-logo.gif) to the “images” directory of your wordpress theme.
26 Jul 2010Posted by admin
WordPress has many hooks that you as a plugin developer can take advantage of while developing a plugin. This page documents the API (Application Programming Interface) hooks available to WordPress plugin developers. This article is specifically about the API of “Hooks”, also known as “Filters” and “Actions”, that WordPress uses to set your plugin in motion. Available “add_action” Hooks Actions are (usually) triggered when the WordPress core calls do_action(). It can be used in the following way: add_action ('hook_name', 'your_function_name', [priority] , [accepted_args]); admin_footer admin_head admin_menu comment_closed comment_form comment_id_not_found comment_post delete_comment delete_post edit_comment ...
25 Jul 2010Posted by admin
If you are trying to tweak or develop a WordPress theme then this post should help making your life a bit easier. This post has a list of all the WordPress functions that you can use from your theme’s template file. Useful PHP Code for Header <?php bloginfo(‘name’); ?> Title of the site <?php wp_title(); ?> Title of the post or page <?php bloginfo(‘stylesheet_url’); ?> The style.css file’s location <?php bloginfo(‘pingback_url’); ?> Pingback URL for the site <?php bloginfo(‘template_url’); ?> Location ...
10 Jul 2010Posted by admin
SEO is important to business owners. The main reason SEO is important is without it your site won’t show up in the search engines or if it does, it may be several pages down. You want to be on the top one or two pages for best results. Here are the best WordPress SEO plugins for your to consider: 1. Robots Meta: This WordPress plugin allows you to choose which blog posts allow a do follow, or no follow. This plugin helps your blog posts to be crawled by the Google spiders. ...
11 Jun 2010Posted by admin
Now that you have your files all set up for converting your HTML template to WordPress, you now want to start changing the code of your HTML template to a WordPress compatible theme. Today we are going to work on your header.php template. You will need to open your Header file from the folder you created in the last step in order to begin this process. Next you will want to open up your HTML document and copy and paste the code from the top of the template all the way ...
15 Mar 2010Posted by admin
Creating your own WordPress theme is really just taking your regular HTML website and converting it to a WordPress theme, making it compatible with the WordPress blogging software. Learning how to convert an HTML theme to WordPress is also a great task to learn if you would like to take your current HTML website or boutique and create a matching WordPress theme so that your Internet Business can also have a blog! In this tutorial series we will cover the simple steps you will need to take in order to convert an ...
24 Feb 2010Posted by admin
Fantastico makes installing many open source files easy as pie. All it really takes is a few easy clicks and you can have your own WordPress blog up and running in no time! Even though Fantastico certainly makes installing WordPress a cinch, it can be a bit confusing for someone who is new to installing scripts, or even new to using Fantastico. This tutorial will help show just how easy it is to install a WordPress blog using Fantastico! First: Log Into Cpanel The one thing you will want to make ...
17 Feb 2010Posted by admin
When you are first starting out with blogging Search Engine Optimization is the last thing on your mind. You just want to blog. Sure there are plenty of SEO ebooks out there, and some of them are quite good, and when you have the time could be a good read. However most of us know time is money, and learning search engine optimization can be very confusing and a bit of a time commitment. Lately I have personally made a commitment to making what blogs I do have, better. ...