Listings on Profile Page
This topic contains 15 replies, has 4 voices, and was last updated by Guust 6 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 28, 2019 at 4:32 pm #6367
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.
December 28, 2019 at 4:35 pm #6368This reply has been marked as private.December 28, 2019 at 11:40 pm #63761. CPTs can be ordered at
GD > Settings > Post Types tab2. 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 profileThanks
December 28, 2019 at 11:51 pm #6377Thanks
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!
December 28, 2019 at 11:54 pm #63781. CPTs can be ordered at
GD > Settings > Post Types tabThat is not reordering the tabs, but there you can “change which CPT is shown first.”
December 29, 2019 at 2:43 am #6382Guust,
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.
December 29, 2019 at 2:43 am #6383This reply has been marked as private.December 29, 2019 at 5:20 am #6385Now 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.December 29, 2019 at 5:36 am #6386Please share WP Admin credentials so we can check the settings on the site showing the issue.
December 29, 2019 at 11:15 am #6387This reply has been marked as private.December 30, 2019 at 6:01 am #6392Hi,
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,
PatrikDecember 30, 2019 at 8:10 am #6395Patrik,
That code doesn’t seem to be working for me. At least not in my Snippets plugin.December 30, 2019 at 8:12 am #6396This reply has been marked as private.December 30, 2019 at 8:46 am #6398It works if you use the Code Snippets plugin: https://wordpress.org/plugins/code-snippets/
Let us knowDecember 30, 2019 at 8:48 am #6399Honestly 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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket