Skip Navigation

[Resolved] Custom Posts only display when logged into WordPress

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 5 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1200277
Displays-when-logged-in.png
Blank-when-logged-out.png

I am trying to:Display custom posts on City Specific Pages. Each city is a custom post type.

Link to a page where the issue can be seen:hidden link

I expected to see:City and Address Information created in custom post type

Instead, I got: Blank Area

#1200334

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I see you want to display some content conditionally but still its not clear to me what exactly content you want to display conditionally exactly where.

I see you shared contact page but I still not understand exactly what content you want to display. Do you want to display all cities just besides the contact form.

#1200610
Custom-post-types.png
Picking-Location.png

We only want to display the city that is picked in the location dropdown or in the menu. Please see screenshots. You have access to the site and FTP. You can see the location appear when logged in but does not display if not logged in. Please let me know if you need more info. We really need to get this figured out ASAP.

#1200975

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing screenshot and information but I see the dropdown is a static HTML dropdown.

As I underrstand - you want to convert that static HTML dropdown to dynamic drop-down - correct? If yes - the thing is that, you placed the dropdown in top header. Toolset view do not control the theme parts like headers, foolters, sidebars etc..etc..

Toolset offers the way to add a view as a widget:
=> https://toolset.com/documentation/getting-started-with-toolset/create-and-display-custom-lists-of-content/adding-views-as-widgets/

Can you please tell me from where that menu generated. I think if you able to pass the URL param, like location_id=XX, we can control the things. But I do not have idea how that menu is generated dynamically form where exactly using which shortcodes.

#1201031

Did you login and go to one of the contact pages? When logged in the location information displays correctly. When logged out it is blank. It is all there. We just need it to display when logged out. I said nothing about the menu. Please let me know if you can help us. If not we will go with a different plugin.

#1201043

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - Yes, I checked now and I see there is no Toolset involved here. To display that Office information on page I do not see if there is any Toolset view or content template used:
=> hidden link

I suggest check this how that functionality is created using what plugins and then try to display it as per your requirements on frontend.