Help with PHP and WordPress

Discussion in 'PHP' started by praetserge, Dec 4, 2011.

  1. #1
    Hi,
    I was wondering if somebody with PHP and WordPress knowledge could help me.
    As we all know when you add a new post to a blog it will automatically appear on the sidebar. Is there a way to publish a post but exclude it from the sidebar?

    Thank you for your help.
     
    Solved! View solution.
    praetserge, Dec 4, 2011 IP
  2. vfleming

    vfleming Active Member

    Messages:
    197
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Disable the widget
     
    vfleming, Dec 4, 2011 IP
  3. praetserge

    praetserge Notable Member

    Messages:
    1,677
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    210
    #3
    I want to have a sidebar but I don't want every single post to be listed there.
     
    praetserge, Dec 4, 2011 IP
  4. #4
    Well you have two choices... the first is to disable the widget.... the alternative is to replicate the widget yourself, but to add a database field which contains a boolean value relating to whether or not the post is displayed in the custom widget, though with this option, you will need to make changes to the post area in the admin section, and add values to posts older than activation of the new widget. The easiest option is to either make a page, or disable the widget displaying posts
     
    Grit., Dec 4, 2011 IP