WordPress.org

Ready to get started?Download WordPress

Forums

Link to a Category using the Slug (2 posts)

  1. Thump
    Member
    Posted 1 year ago #

    Hi,

    I am trying to link my category links in my footer calling the slug, my PHP and wordpress is beginner level ;o(

    The links in the footer are hard coded and I would like to pass in the A HREF this and maybe pass the title to.

    So I have done this: <li><a href="<?php echo get_category_by_slug('meal-kits') ?>">Meal Kits</a></li> but this does not work

    Please could some one help

  2. Thump
    Member
    Posted 1 year ago #

    Please some one, help with the above question

Topic Closed

This topic has been closed to new replies.

About this Topic