My Listings Button

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

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

Open Support Ticket
  • Author
    Posts
  • #338438

    passionfruit
    Expired Member
    Post count: 58

    Hiya

    Geodirectory has a login widget that allows a link to ‘My Listings’. I’m using woocommerce to sell memberships so want to use the woocommerce login account dashboard to display a button link to ‘My Listings’. I can create the button but need to get the link working.

    Currently that link looks like this which takes the username of the logged in person…. http://www.webaddress.com/author/rogermorley/?geodir_dashbord=true&stype=gd_place.

    I wondered if somebody could please provide a quote to add in the relevant php code to produce a link that will take clients to their individual logins.

    To explain better, I have included the necessary work needed as explained by Paolo on the forum.

    The variable is the username of the logged in user.
    so if the logged in user is : paolo the url will be:
    yoursite.com/author/admin/?geodir_dashbord=true&stype=gd_place
    If you are suing more than one CPT the last part becomes dynamic too.
    example:
    yoursite.com/author/admin/?geodir_dashbord=true&stype=gd_event
    This require custom PHP code.

    Thanks for taking the time to look at this.

    Many Thanks
    Lucy

    #338502

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Lucy,

    Have a look at our function that builds the list, hopefully it will be what you need:
    https://wpgeodirectory.com/codex/codex/geodirectory_functions/geodir_user_show_listings/

    Thanks,

    Stiofan

    #338602

    passionfruit
    Expired Member
    Post count: 58

    Hi Stiofan

    Thanks for this. I was just looking online but am struggling to see what code I would need to add to pull the function.

    Do people on this forum quote to do this sort of work?

    Thanks again!

    #339586

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    if there is anyone available they will.

    I’d suggest to also look into codeable.io and upwork.com

    There you have more chances to find a freelance developer.

    Thanks

    #341201

    passionfruit
    Expired Member
    Post count: 58

    Perfect thank you! Will do!

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