remove default output/markup of [gd_post_title]

This topic contains 9 replies, has 4 voices, and was last updated by  Naveen Giri 4 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #529760

    Daniel Kuttner
    Expired Member
    Post count: 8

    Dear gd-team,
    is there a way to get rid of the default markup of [gd_post_title] to show just the raw text? or the other way round: is there a way to prepend/append sth right to [gd_post_title]? We want to use it for generic headlines and currently the markup looks sth like this:

    
    <h1>some text
    <h1>gd post title output</h1>
    </h1>
    

    therefor we just want to have 1 h1 😉
    Many thx in advance and best regards
    Daniel
    P.S.: [gd_post_title tag=”h1″] doesn’t help

    #529762

    Kor
    Moderator
    Post count: 16516

    Hi Daniel Kuttner,

    Thanks for your post. You can try outputting it using a “Post Meta”, https://wpgeodirectory.com/docs-v2/design/gd-post-meta/ . I hope it helps.

    #529765

    Daniel Kuttner
    Expired Member
    Post count: 8

    Hi Kor,
    many thx for your blazing fast support. This looks quite good but unfortunately it seems that

    [gd_post_meta key="post_title"]

    doesn’t help with fetching the city name. Any idea? What we want to archive is to fetch the city name and embed this in our headlines as described above.

    #529781

    Daniel Kuttner
    Expired Member
    Post count: 8

    i am searching sth like the

    %%in_location%%

    but usable without widget – is this possible?

    #529792

    Kor
    Moderator
    Post count: 16516

    Hi Daniel,

    Thanks for your reply. You can output the address using this shortcode [gd_post_meta key=”address”] and hide parts of the address using custom CSS code.

    Thanks!

    #529794

    Daniel Kuttner
    Expired Member
    Post count: 8

    Cheers Kor,
    many thx again but unfortunately this doesn’t work, at least on the detailpage of a GD_location.

    [gd_post_title] // delivers output with markup <h1>
    [gd_post_meta key="address"] // nothing is shown
    [gd_post_meta key="location_city"] // nothing is shown
    [gd_post_meta key="location_meta_city"] // nothing is shown

    I just tried some combinations because i couldn’t find a list therefor …
    Maybe any further suggestion? Otherwise i will stick to the markup version but sth without markup would be cooler.

    #529799

    Kor
    Moderator
    Post count: 16516

    Hi Daniel,

    Thanks for your reply. You can only use this [gd_post_meta key=”address”] but could you share your Website WP admin access here in private reply so that I could check your GD setup? To clarify, you’d like to display the “city” of the listing on your location page right?

    #529804

    Daniel Kuttner
    Expired Member
    Post count: 8
    This reply has been marked as private.
    #529819

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    Badges can output address parts like %%city%% but location meta is not available without a customization.

    The developers are considering a ‘raw’ output for GD Post Meta to allow easy inline placement. I will ask them to let us know if there is an update about that.

    #530774

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Daniel,

    for city name, you can use following shortcode.
    [gd_post_address show=”label-value” address_template=”%%city_br%%”]

    We are working on raw output of GD meta as alex said.

    Thanks

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

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

Open Support Ticket