How would you do this in Wordpress? A plugin?

7 replies
Here's the situation:

I created a website for my client. Now the website is full-width, without a sidebar.

However, my client has an article page and they have over 20+ articles. They ask if they can list the article at the sidebar of the article page.

That means, for this article page:
- it should list all the articles at the sidebar
- the sidebar should also be visible for all the article pages
- this sidebar is ONLY for articles segment only. The rest should be full-width

Is there a way to do this? Via a plugin? I'm using ElegantBiz theme so don't ask me to change the theme.
#plugin #wordpress
  • {{ DiscussionBoard.errors[8551438].message }}
    • Profile picture of the author NatesMarketing
      You may also be able to edit your theme's php files...like a page.php file....make it article.php and then add in a sidebar - with widget.

      Then, on your article pages, select the article.php template.

      If that makes sense.
      {{ DiscussionBoard.errors[8551450].message }}
  • Profile picture of the author adrian49
    Head over to the widgets page and add Recent Posts widget to your sidebar.

    Alternatively edit sidebar.php and add the folowing code:
    <?php get_archives('postbypost', '10', 'custom', '<li>', '</li>'); ?>
    {{ DiscussionBoard.errors[8551562].message }}
  • Profile picture of the author Jtraits
    yeah, i've been using WP for quite a long time and in order to make it visible only to a certain page, you need to edit the HTML file...
    {{ DiscussionBoard.errors[8551588].message }}
  • Profile picture of the author Istvan Horvath
    Before you can get a meaningful answer - you should clarify whether the articles are posts or Pages.

    Then just use a custom template for that entry type: a template that includes sidebar with the code in it to display the 'sibling' entries.
    Signature

    {{ DiscussionBoard.errors[8551613].message }}
  • Profile picture of the author Joseph Then
    Thanks for the suggestions. Let me try them out. As for Istvan's question, they are all pages not posts.
    {{ DiscussionBoard.errors[8553638].message }}
  • Profile picture of the author Joseph Then
    OK problem solved.

    Plugins used: PS Sub-pages & Simple Page Sidebars

    The above plugins will allow me to list all the subpages of the parent page via widgets and this articles page will use only this specific sidebar.

    However, I do need to auto-list all my subpages at the parent page, and I found Shortcode Ultimate. Very useful plugin as it has a function of auto listing all the sub pages, amongst many other shortcodes.
    {{ DiscussionBoard.errors[8553771].message }}

Trending Topics