WordPress: How To Display A Widget On A Specific Page



 

Question:

In WordPress, I would like to use one widget to put it on one sidebar, but not to be displayed in every webpage but in a specific template page. And also, to be editable! Thanks in advance

See Answers Below…

 

Best WordPress Hosting WebHostingHub - Best WordPress Hosting Lightning fast WordPress optimized servers running cPanel control panel. Host unlimited blogs on one account. Fast & easy 1-click WordPress installation. Outstanding WordPress customer support. Yes, we do WordPress! A+ Better Business Bureau rating. 90-day money back guarantee. Click here to get your WebHostingHub account now.
Share

2 Responses to WordPress: How To Display A Widget On A Specific Page

  • Darron Burow says:

    ONLY if your site is hosted on your own webhost! i.e your using the wordpress.org download and your sites at http://www.yoursite.com, NOT hosting on wordpress.com (i.e. yoursite.wordpress.com).

    If so, Yes you can but you need to feel a little comfortable editing PHP or you’ll need to download the widget logic plugin: (Recommended)
    http://wordpress.org/extend/plugins/widget-logic/

    Each widget is different, but you’ll need to go to that specific active widget, edit the code to show the instance you want. or use the the plugin which will give you the optin to change where your widgets are displayed. Here are your choices:

    Display only on the home page: is_home()
    Display only on individual posts: is_single()
    Display only on pages: is_page()
    Display on archive pages (category, tag, etc.): is_archive()
    Display on search results pages: is_search()
    Display on all pages except the home page: !is_home()
    Display on “this” or “that” page: is_page(‘this’) || is_page(‘that’)

    If you need more help, or more specifics, you can reach me at my webrats blog site
    http://webrats.wordpress.com

  • Admin says:

    There is a easier solution without messing around with the code. There’s a plugin called Widget Context.
    http://wordpress.org/extend/plugins/widget-context/

    There are also some other plugins you might like when you need to control what is displayed on certain pages/posts.

    Advanced Text Widget has extensive conditional options to display content on pages, posts, specific categories etc. It supports regular HTML as well as PHP code and shortcodes.
    http://wordpress.org/extend/plugins/advanced-text-widget/

    Simple Sidebar Navigation widget lets you create custom navigation menus on specific pages/posts.
    http://wordpress.org/extend/plugins/simple-sidebar-navigation/

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

Spam protection by WP Captcha-Free

iPage cpanel - Affordable, E-Commerce Enabled, 1-Click WordPress Installs
Archives
Blog Theme Generator

Artisteer - #1 Blog Theme & Web Template Generator

Get Free Traffic

Blazing fast WordPress hosting. Host unlimited sites on unlimited hosting space. Free domain & setup. Only $3.95/mo.