Displaying Most Recent Posts and Comments on WordPress

February 8th, 2010

Displaying Most Recent Posts and Comments on WordPress

Default WordPress allows you to display recent posts and recent comments through a widget.  However, as I develop my own theme, I want to be able to customize as much as possible without using a widget in my sidebar at all. The problem is, displaying recent posts and recent comments is not as simple as just using a WordPress template tag found in WordPress Codex.  Instead, you will need to get creative and create a bit of custom code to grab the data from the database. There are definitely some common code snippets used for WordPress but I found the ability to control and display recent posts and recent comments to be what I need most. Displaying Most Recent Posts There are several ways to display the most recent posts from just using the wp_get_archives tag to query_posts tag which involves... Continue Reading...

Tags: , , ,
Filed under Wordpress | No Comments »

Adding Author Bio Information to a Post on WordPress

February 8th, 2010

Adding Author Bio Information to a Post on WordPress

It is always nice to add custom features to enhance the user experience.  One of these enhancements is to add the an author’s bio information to an article he or she has written.  This is particularly useful because when reading a good article the user may be inclined to learn more about the author. A quick snippet of the author’s information can help users relate to the author as well as help the author promote himself or herself. Using the_author_meta tag to grab information In WordPress, each registered user can fill out information about themselves in their profile.  This is found in the Dashboard under Users -> Your Profile.  Some of the meta information fields that are available by default are the following: Username First name Last name Nickname Email Website AIM Yahoo... Continue Reading...

Tags: ,
Filed under Wordpress | 1 Comment »

Adding Tabs or Tabbed Menu to WordPress

February 8th, 2010

Adding Tabs or Tabbed Menu to WordPress

The sidebar for WordPress is typically where the archive, categories and other items are listed on your front page. However, as your categories and numbers of posts in the archive grow, so does the list; resulting in a really long sidebar.  Having a long sidebar can take up precious onscreen real estate.  It can also be a distraction to the user. Tabbed Menu as the Solution In looking how to save some onscreen real estate as well as providing a more slick interface for users to navigate for content on the site, designers can choose to create a tabbed menu. In searching the internet, there were many solutions.  There are actually a couple of specific plugins for WordPress.  Although, it is easier to use a plugin, the widget based style is less customizable for my liking. I found several... Continue Reading...

Tags: , ,
Filed under Wordpress | No Comments »

Placing Login Form on Front Page of WordPress

February 8th, 2010

Placing Login Form on Front Page of WordPress

If your running WordPress, you’ll know that if you want to log into the admin dashboard, you have to type in the URL for the login page.  This can be inconvenient if you set up a social website where you want users to be able to login. Sure, a link to the login page can be done, but that requires one extra click and loading of the page. WPDesigner has a great snippet of code to add to your theme so users can login from the front page. The Code You can download the code from WPDesigner.  But here is a quick preview of the code: <li> <?php global $user_ID, $user_identity, $user_level ?> <?php if ( $user_ID ) : ?> <h2>Control panel</h2> <ul> <li>Identified as <strong><?php echo $user_identity ?></strong>. <ul> <li><a... Continue Reading...

Tags: ,
Filed under Wordpress | 1 Comment »

How to Set Primary Domain Into a Subfolder on Bluehost

February 4th, 2010

How to Set Primary Domain Into a Subfolder on Bluehost

Today, I decided that I needed to move my website, a WordPress, installation to a different location.  Since I was going to move and migrate my entire website, I figured I might as well choose an ideal location. Being hosted on Bluehost meant that my primary domain resided in the root folder.  Any add-on domains were in their own sub folders or sub directories inside the root or public_html.  The downside to this is it keeps all the files to my primary domain unorganized in the root folder. In order to have it organized, I wanted to have my primary domain folder reside in its own sub folder or sub directory.  I am not as comfortable in the server environment as my knowledge of working with the .htaccess file is limited. I searched Bluehost knowledgebase as well as other sources and finally... Continue Reading...

Tags: , , ,
Filed under Coding | 1 Comment »


Fatal error: Cannot redeclare class TNX_l in /home1/designrj/public_html/designrjc/wp-content/themes/sveltemoda/tnx.php on line 5