Printing all tags from a listing

This topic contains 6 replies, has 3 voices, and was last updated by  Paolo 8 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #61866

    visitmcminnville
    Expired Member
    Post count: 7

    Is it possible to get a list of all tags for the listings page? I found I am able to get tags of a specific listing by adding the following to the template files in my listing-listview.php file.

    
    
     $post_details = geodir_get_post_info($entry['ID']);
      $tags = $post_details->post_tags;
      echo $tags;

    However I also would like to print all possible tags for a listings page without pulling the tags from other listings pages. Is there a place where all tags are stored?

    Thanks!

    #61870

    Guust
    Moderator
    Post count: 29970

    All your tags are listed under the Custom Post type, see image.
    I’ll get Paolo to look at the rest of your question.

    #61892

    visitmcminnville
    Expired Member
    Post count: 7

    Thanks! I was able to find the list of tags in the admin side but I would also like to display all of them in the listings page if possible. Similar to this WordPress function:

    http://codex.wordpress.org/Template_Tags/wp_tag_cloud

    but for Geo Directory above the grid view in the listings page.

    #61902

    Guust
    Moderator
    Post count: 29970

    Will using the “Tag Cloud” widget work for you if you add it to the top section of the Listings page?
    You can choose any Custom Post Type tags from the list in the widget.

    #61907

    visitmcminnville
    Expired Member
    Post count: 7

    After creating a custom widget area for it, it seems to work! Thank you so much!!

    I have one more question, let me know if I need to create a new thread for it. Does there exist a function or action to pull just the website URL of a listing out of the “details” so I may create a link to it outside of the “details_sidebar” area?

    Thanks!

    #61931

    Guust
    Moderator
    Post count: 29970

    You can adjust the settings of any custom fields to display it somewhere else than its default position. Have a look here: https://wpgeodirectory.com/docs/core-place-settings/#common and review “Show in sidebar”, “Show on listing page” and “Show in More Info tab on detail page”.

    #62004

    Paolo
    Site Admin
    Post count: 31206
Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket