Support » Fixing WordPress » Calendar / Search / Posts by Categories

  • Hi everybody,

    I’m currently ‘hacking’ WordPress to make it suit my needs.
    I’ve created a category-3.php template that is displayed instead of archive when user accesses the category with id 3.

    I display the Calendar there, but my problem is that I need to make my calendar category-specific. If user clicks the previous month it should display the same template category-3.php with the updated calendar.

    I’m a bit lost now. I’ve modified get_day_link() get_month_link() and get_year_link() to return the category in the url so my URL’s look like this:


    Now how do I tell WordPress that it has to fetch the calendar with that date but from that category? So far I’ve modified the get_calendar() function and added the INNER JOIN’s to fetch only the posts from _that_ category and I call get_calendar($daylength = 1, $catid = 0) so I can pass the category id as the second parameter.

    What I need basically is guidance on how to make the search/post display/calendar display/ category-specific.

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calendar / Search / Posts by Categories’ is closed to new replies.