Display user listing on page not post with shortcode.

This topic contains 7 replies, has 4 voices, and was last updated by  Kiran 7 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #338168

    Tom Rendle
    Buyer
    Post count: 46

    https://wpgeodirectory.com/support/topic/display-users-listings-shortcode/

    This was brought up in another thread and resolved although I’m unable to replicate the results. I have created a folder called bp-custom in wp-plugins and created a file called bp-custom.php which contains this code:

    <?php global $current_user;
    get_currentuserinfo();
    echo do_shortcode( ‘[gd_listings post_author=”‘.$current_user->ID.'”]’)
    ?>

    I am using shortcode on members home pages to show their own listings and listing types.
    Here is an example of that shortcode:
    [gd_listings post_type=”gd_solar_installer” layout=4 post_number=”4″ list_sort=”high_review” post_author=”‘.$current_user->ID.'”]

    I have also tried “post_author=”current”” to no avail.

    Can you please instruct me on how to get this to work?

    #338178

    Kor
    Moderator
    Post count: 16516

    Hi Tom,

    Please share WP temp admin access to your site so we can take a better look. You can post the details here using the private reply option below.

    Thanks!

    #338190

    Tom Rendle
    Buyer
    Post count: 46
    This reply has been marked as private.
    #338227

    Tom Rendle
    Buyer
    Post count: 46

    that’s powerlily.io. Also, I seem to have lost the sidebars in my gd_home (hub page) and gd_listings pages.

    #338269

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    why not using the Buddypress integration that does all that?

    Let us know,

    Thanks

    #338286

    Tom Rendle
    Buyer
    Post count: 46

    I have buddypress integration setup, but the problem is that I have two membership types using PMPRO. This means that I have buyers and sellers and it’s set up so that they can post different cpt’s in the directory. If I set it to show business listings it would seem strange that buyers would have the option to view their business own listings. I set up home pages that are meant to be back end dashboards where the user can view and post the listings specific to their membership type.

    #338950

    Tom Rendle
    Buyer
    Post count: 46

    Anything I can do to sort this out or should I try something else instead?

    #339407

    Kiran
    Moderator
    Post count: 7069

    Hi Tom,

    You have lost the sidebars in my gd_home (hub page) and gd_listings pages.
    Because
    – You have disabled sidebars on homepage & and set content to full page width via settings at GeoDirectory -> Design -> Home
    – You have added custom css script to hide right sidebar at GeoDirectory -> Design -> Scripts

    For the shortcode problem, we need FTP details to look into more.

    Thanks,
    Kiran

Viewing 8 posts - 1 through 8 (of 8 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