WordPress.org

Ready to get started?Download WordPress

Forums

Duplicating half-body/half-category pages (3 posts)

  1. CheeseRex
    Member
    Posted 1 year ago #

    Hi everyone,

    I'm working on providencestudentunion.org, using a child of the "Responsive" theme, and I can't wrap my head around this problem. I want to make 3 pages (Alvarez, Central, and Hope United, for those who look at the site), where the half-page sidebar (these pages come as templates with "Responsive" but the concept should be understandable) for each page should display the posts for the corresponding category — left side of X page is X's content and the right side is posts pertaining to X's category, like so:
    "Content A" / "Category A"
    "Content B" / "Category B"
    "Content C" / "Category C"

    Problem is, I can only succeed on one page. Responsive's "Content/Sidebar Half Page" template works perfectly, but I wind up with:
    "Content A" / "Category A"
    "Content B" / "Category A"
    "Content C" / "Category A"

    This is the plugin I'm using: http://wordpress.org/extend/plugins/category-posts/ I have to specify which category (say "Category A") I want the widget to display. But duplicating the plugin won't solve the problem (even though I tried and failed at that) because there is only one sidebar to place it into.

    Does this make sense? How can I solve this? Do I need to copy two new half-page templates, two corresponding sidebars, and place the widget in each? Just logically, I don't know where to begin on this.
    Thanks!

  2. bcworkz
    Member
    Posted 1 year ago #

    You should be able to put most widgets multiple times into the same sidebar. But if the widgets are defined without the Widgets API, they would need to be updated. See this recent thread: http://wordpress.org/support/topic/hack-widget-to-reuse-again

    Adding more sidebars would be another solution, you don't need to replicate the entire template, just replicate the sidebar portion and register each one with a new unique id.

  3. CheeseRex
    Member
    Posted 1 year ago #

    Thanks, I figured it out with a combination of 'Dynamic Widgets' and 'Widgets on Pages' and the 'category posts' widget I mentioned above. I put the category posts widget into the sidebar multiple times, defined separate content for each, and then set each specific widget to be shown only on its corresponding page.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.