WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] get_cat_ID($category_name) works on pages with page_id, but not cat_id url's (3 posts)

  1. HW2012
    Member
    Posted 1 year ago #

    get_cat_ID($category_name) works on pages with page_id, but not cat_id url's. For example, when using the function get_cat_ID($category_name) in the template. If I use that template with the functions for a page like http://url/?cat=6, it does not work, but http://url/?page_id=6 works. Any suggestions? Thanks

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    how do you set $category_name ?

    what is the full code of the template?

  3. HW2012
    Member
    Posted 1 year ago #

    Hi, sorry :(, my fault was lying somewhere else, it was a small mistake I have made that made me look to deep for the answer. Thanks, the problem is solved.

Topic Closed

This topic has been closed to new replies.

About this Topic