WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] linking a category in php? (2 posts)

  1. keeperbay
    Member
    Posted 1 year ago #

    Sorry, not sure how to explain this, stay with me.

    I have a multisite, the theme for each site is the same and has 4 featured boxes. Each multisite is setup the same way and each one of the featured boxes connects to a specific category on one of the subs. I need the # in the first line below to be like that image link. The link will be http://domain.com/sub/category/category name/ - So I need the # to be /category/category name/

    How do I do that when it's not an image?

    <a href="<?php echo of_get_option('featured-link3', '#'); ?>">
    <img src="<?php echo of_get_option('featured-image3', get_template_directory_uri() . '/images/featured-image3.jpg') ?>"/>
  2. keeperbay
    Member
    Posted 1 year ago #

    DUH! I'm having one of those days.

    <a href="<?php echo of_get_option('featured-link3', './category/community/'); ?>">

    That's my answer.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.