• Hello,

    I would like to display a specific post OR page within my sidebar so a user could update it every day such as (daily specials). I don’t like a client to have to edit the basic text widget because the styling can break very easily. I’d rather they edited a post/page using the WYSIWYG editor. I installed the “Featured Post Widget” but this is only displaying 3 lines from the post. Is there a way for me to load a “get post” or something like that in my sidebar.php file? I’ve tried a couple solutions I found in the forums and I can’t get any of them to work for me. Is there another solution that would work better? Thanks!

Viewing 16 replies (of 16 total)
  • Thread Starter InHouse

    (@inhouse)

    Can anyone see why changing 'page_id' => 38, from an ID of a Post to an ID of a Page wouldn’t work? I have a new site I am implementing this same code and I still cannot get a page to show up in the sidebar, only a Post. I’ve used various page IDs and none will work. Any post ID I use works perfectly. I would really rather display a page than a post in this scenario. This client doesn’t maintain a blog so this would be the only post in the site. Displaying a page makes more sense. The idea is to make the “Current Heating Oil Prices” easily editable by the client.

    New site build is here. Thanks a lot.

Viewing 16 replies (of 16 total)
  • The topic ‘Display post/page in sidebar’ is closed to new replies.