Output Edit this Post link in details main content

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

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #53607

    Dylan
    Expired Member
    Post count: 40

    Hello,

    I want to output the ‘Edit this Post’ link in the geodir_details_main_content area. Is this possible?

    I see the function geodir_edit_post_link (https://wpgeodirectory.com/docs/codex/geodirectory_functions/geodir_edit_post_link/), but I do not see a clear way to output only the edit post link?

    Thanks.

    #53628

    Guust
    Moderator
    Post count: 29970

    I flagged this for Paolo. Because it is the weekend, it might take a bit longer than usual.

    #53669

    Paolo
    Site Admin
    Post count: 31206

    Hi Dylan,

    this should do it:

    <?php geodir_edit_post_link();?>

    Let us know how you went,

    Thanks

    p.s. please try to help us understand your needs with a little more details explaning desired results right away. It would help solve topics quicker and avoid ping pong support. See for example: https://wpgeodirectory.com/support/topic/relocate-the-favorite-link-only/#post-53668

    #53782

    Dylan
    Expired Member
    Post count: 40

    Hi Paolo,

    geodir_edit_post_link();

    displays all three items – ‘Edit this Post’, ‘Upgrade Listing’ and ‘Favorite’. Since we have moved ‘Favorite’ to another location on the page, we want to display only ‘Edit this Post’, and ‘Upgrade Listing’ (and obviously those only appear for logged in users).

    As a solution, we could hide the Favorite link with CSS. But if there is a way to display only the two links (‘Edit this Post’, and ‘Upgrade Listing’), that would be optimal.

    Any way to do that?

    Thank you for your help.

    #53783

    Paolo
    Site Admin
    Post count: 31206

    I would hide the unwanted with css. Much easier than breaking down the original functions
    Thanks

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

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

Open Support Ticket