WordPress.org

Ready to get started?Download WordPress

Forums

Passing Variable to Query_Posts via Url (2 posts)

  1. Jack Reichert
    Member
    Posted 3 years ago #

    Hi,
    I'd like to create a custom link that will be broken down into the query_posts.

    www.mysite.com/category/name_of_category/2009/

    so that wordpress parses this url to

    query_posts('category_name =name_of_category&year=2009')

    I'm pretty sure it would be done with WP_Rewrite but not quite sure how...

    I'd really appreciate some advice.

    Thanks!

  2. Mark / t31os
    Moderator
    Posted 3 years ago #

    The following blog covered doing something very similar, perhaps something there will be of help.
    http://johnbeales.com/20090824/endpoints-a-little-secret-for-url-manipulation-in-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Topic