Add a custom field between title and category?

This topic contains 5 replies, has 2 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
  • #186352

    Scott Harris
    Lifetime Member
    Post count: 74

    In my directory, the title of each listing is an individual’s name. In the details page main section, the title appears at the top and the category follows below.

    I’d like to display the individual’s company affiliation below their name and set up a custom filed for that. Is it possible to echo that custom field into that space so it’s not in the sidebar?

    #186354

    Paolo
    Site Admin
    Post count: 31206

    Which theme are we talking about? Please rpvide a link so that we can see.

    Thanks

    #186409

    Scott Harris
    Lifetime Member
    Post count: 74
    This reply has been marked as private.
    #187137

    Paolo
    Site Admin
    Post count: 31206

    hi,

    please try:

    
    
    add_action('geodir_details_main_content', 'practice_name', 25);
    
    function practice_name() {global $post; echo $post->geodir_practicename;}

    Let us know if that is what you wanted.

    Thanks

    #187424

    Scott Harris
    Lifetime Member
    Post count: 74

    Thanks Paolo. that worked perfectly.

    #187436

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount