The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. keeperbay
    Posted 3 years 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
    Posted 3 years 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


No tags yet.