WordPress.org

Ready to get started?Download WordPress

Forums

Calendar / Search / Posts by Categories (3 posts)

  1. Appletalk
    Member
    Posted 8 years ago #

    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:

    http://localhost/test/my-category/2006/02/08/

    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

  2. Appletalk
    Member
    Posted 8 years ago #

    Maybe someone can point me where WordPress parses the query string?

    I'm looking for that anyway..

  3. Appletalk
    Member
    Posted 8 years ago #

    Up

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags