WordPress.org

Ready to get started?Download WordPress

Forums

Dynamically Link Categories To Pages (3 posts)

  1. Gemfruit
    Member
    Posted 10 months ago #

    I'm looking for an elegant way to link category links to the corresponding pages (they share names). For instance, if I click on the music category, I want that link to go to mysite.com/music (which is a page). Any advice on how to do this is much appreciated :)

  2. Pioneer Valley Web Design
    Member
    Posted 10 months ago #

    You can create a category-music.php Page Template and add the link in HTML (even using PHP) to that. When someones navs to category/music this template will be used.

    See:

    Category Templates

    This should be accomplished in a Child Theme (as edits to parent themes are lost on theme updates)

  3. lwash
    Member
    Posted 10 months ago #

    I have a similar problem and don't know how to fix ( i also don't know how to start a new question...)

    I want to show only one portfolio category in a portfolio-loop how do i accomplish this?

Reply

You must log in to post.

About this Topic