Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Excluding Pages In The WordPress Sidebar

Read original blog post

No Tags
UserPost

9:27 pm
November 13, 2009


Josh

Admin

posts 52

WP_video_tutorial.gifI created a Youtube video to show how you can exclude a page from showing up in the WordPress sidebar of your blog. I did a quick search on Google for a plug-in but was not able to find anything. If anyone knows of a plug-in please post on the blog.

Find:
The first thing you will need to do is edit the sidebar.php file. Do a search for the following function: wp_list_pages.

Edit:
Next you will need to find the post ID for the page you want to exclude. Once you know this you will add this “&exclude=5” to your wp_list_pages function.

Example: <?php wp_list_pages('sort_column=menu_order&title_li&exclude=5'); ?>

Upload:
Once you have modified and saved your file then upload to your server and the page will be updated.

Done


Read original blog post

No Tags

About the Traffic Is Gold Forum

Most Users Ever Online: 31

Currently Online:
6 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 1
Forums: 13
Topics: 30
Posts: 30

Membership:

There are 182 Members

There is 1 Admin
There is 1 Moderator

Top Posters:

ashish.bhatnagar – 1
bhatnagar.ashish001 – 1
Maria – 1

Recent New Members: niesul14, aquariusmediaa91, ericrichard84, ashish.bhatnagar, bhatnagar.ashish001

Administrators: Josh (52 Posts)

Moderators: Lilly (1 Post)



 

Technorati Tags: , , , ,