Results 1 to 1 of 1

Thread: how to get category URL path?

  1. #1
    Thread Starter
    Junior Member kien's Avatar
    Join Date
    Feb 2013
    Posts
    27
    Thanks
    0
    Thanked 2 Times in 1 Post

    how to get category URL path?

    Hi,

    I need php code to get category URL path? I want to show state link on home page for each ads, I use code to echo the state:

    <?php echo get_post_meta( $post->ID, 'cp_state', true ); ?>

    Then I want to add a link to this state name, this link will redirect to refind search result by this state value. But I dont know how to get category url path. Current, your code return

    <a href='http://........"">category's name</a>

    I want to get only http://........, I dont want to get all link <a href...</a> etc code. How to get ONLY category URL path??

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to get image path?
    By kien in forum ClassiPress General Discussion
    Replies: 2
    Last Post: March 26th, 2013, 11:03 PM
  2. Changing the /category path to the slug of a given category
    By trebbort in forum ClassiPress General Discussion
    Replies: 0
    Last Post: November 30th, 2012, 04:49 AM
  3. Best Upgrade path from 3.1 to 3.1.3
    By message4wale in forum Help Using ClassiPress
    Replies: 1
    Last Post: July 27th, 2011, 09:13 AM
  4. JobRoller Upgrade Path 1.3.1 to 1.4.2
    By reagan in forum Help Using JobRoller
    Replies: 6
    Last Post: June 14th, 2011, 07:42 PM
  5. Profile path
    By travelsnake in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: September 21st, 2010, 06:00 PM