Listings on Profile Page

This topic contains 15 replies, has 4 voices, and was last updated by  Guust 4 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #6367

    riobravomedia
    Free User
    Post count: 361

    I added the starting listings for my directory and I am trying to setup the Profile page. I am having a few issues as I set up two GD sites.

    1. On the first site I am seeing all of the listings plus a sub-nav for each CPT so this is as it should be I think. What I would like to change is which CPT is shown first. It seems to pick Places first. Do I have any control over which listing tab shows first?

    2. On the second site I am NOT seeing but one CPT and no sub-nav for the other CPT’s. Is there a setting I missed? I can’t seem to find it comparing the settings between both sites.

    #6368

    riobravomedia
    Free User
    Post count: 361
    This reply has been marked as private.
    #6376

    Guust
    Moderator
    Post count: 29970

    1. CPTs can be ordered at
    GD > Settings > Post Types tab

    2. That can mean that the user does not have listings in those CPTs, or the CPTs are not selected at
    UsersWP > Addons tab > GeoDirectory sub-tab > CPT listings in profile

    Thanks

    #6377

    riobravomedia
    Free User
    Post count: 361

    Thanks

    1. the Order of the tabs is okay.. it is the focus that I am trying to adjust. It opens to Places and that is not used as much as other CPT’s and won’t be used much by users in my directory.

    2. That was the setting I needed Thanks!

    #6378

    Guust
    Moderator
    Post count: 29970

    1. CPTs can be ordered at
    GD > Settings > Post Types tab

    That is not reordering the tabs, but there you can “change which CPT is shown first.”

    #6382

    riobravomedia
    Free User
    Post count: 361

    Guust,

    My settings for this are the same on both sites. Turns out Places is in Position #4. So maybe this is not the correct setting for which one is the default focus CPT. Unless there is some other setting that you are talking about.

    #6383

    riobravomedia
    Free User
    Post count: 361
    This reply has been marked as private.
    #6385

    Guust
    Moderator
    Post count: 29970

    Now I get it !
    It looks indeed like in the Listings tab, it opens Places by default.
    I’ll get the developers to have a look.

    #6386

    Alex Rollin
    Moderator
    Post count: 27815

    Please share WP Admin credentials so we can check the settings on the site showing the issue.

    #6387

    riobravomedia
    Free User
    Post count: 361
    This reply has been marked as private.
    #6392

    Patrik
    Moderator
    Post count: 1971

    Hi,

    To open other CPT as default tab you can try to put the following code in your theme’s functions.php file or using Code Snippets plugin:

    add_filter('uwp_default_listing_subtab', 'uwp_default_listing_subtab_cb', 10, 1);
    function uwp_default_listing_subtab_cb(){
        return 'business';
    }

    Let me know if it resolves your issue or not.

    Regards,
    Patrik

    #6395

    riobravomedia
    Free User
    Post count: 361

    Patrik,
    That code doesn’t seem to be working for me. At least not in my Snippets plugin.

    #6396

    riobravomedia
    Free User
    Post count: 361
    This reply has been marked as private.
    #6398

    Guust
    Moderator
    Post count: 29970

    It works if you use the Code Snippets plugin: https://wordpress.org/plugins/code-snippets/
    Let us know

    #6399

    riobravomedia
    Free User
    Post count: 361

    Honestly GD is so plugin heavy I really don’t need yet another plugin. can you share do I need to know anything before adding it to the functions.php?

    It works, I have it added to the functions.php.

    Thanks

Viewing 15 posts - 1 through 15 (of 16 total)

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

Open Support Ticket