Posts not matching up with content

Hi,

I’ve create a new layout to show some FAQ posts. With the layout I used the condition Category is FAQ to show only the FAQ posts. When I click on any of the FAQ posts however, the layout only shows the 1st post in the list.

https://promotions.onlinepsychics.live/03-why-is-time-of-birth-optional/

I’m guessing this is to do with how I’ve setup the Looper Consumer but can’t work out what the problem is.

Thanks,
Darren.

Hi Darren,

Thanks for reaching out.
It is not very clear which type of layout you have created, if that is Single you don’t need to use Looper Consumer. If you have used the Looper Provider in the Single layout please remove that and try it again. If that does not help, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hey Tristup,

I did in fact use a Single Layout. I understand how I can show the Main Post that is in the URL, but how do I show the remaining FAQ posts in the sidebar if I don’t use a Looper provider & Consumer?

Thanks,
Darren.

Hi Darren,

If you want to show the other FAQ posts in the sidebar you need to add the Looper Provider for that separately and should exclude the current FAQ post you are showing. I would suggest you follow the below steps and check if that helps.

  1. Create a Single Layout and assign it to the FAQ post.
  2. Add Content to the Single Layout from Scratch or Template.
  3. Add a new section for sidebar and set the Looper Provider to the Row or Column to get all the FAQ posts excluding the current one.
  4. Set Looper Consumer to Column to show the FAQ posts.

Hope it helps.
Thanks

Hey Tristup,

Thanks again for your help. Can you explain how I would exclude the current post in the Looper Provider? I’ve looked at the Query Builder Provider but can’t find anywhere that gives me the option to exclude the Current Post.

Thanks,
Darren

Hello Darren,

You need to set the Looper Provider as Query String then you need to add the custom query string the pull the post from the custom post type.

test-single-Layout-Builder-Pro (2)
post_type=your_post_type_slug&post_status=publish&posts_per_page=20&post__not_in%5B0%5D={{dc:post:id}}

Please change these values as per your data source and design.

  1. post_type
  2. posts_per_page

Hope it helps
Thanks

Hey Prakesh,

Thanks for the help! Can you tell me how I find the post_type? This is one of the posts I am wanting to pull: https://promotions.onlinepsychics.live/01-whats-so-great-about-the-forecast-video/

I just thought it was a standard post type…?

Darren.

Hello Darren,

It seems that you are using the standard posts in that case you need to add the ‘post_type’ as ‘post’
Query Would be like this

post_type=post&post_status=publish&posts_per_page=20&post__not_in%5B0%5D={{dc:post:id}}

Hope it helps
Thanks

Awesome - did the job!

Many thanks again!

Cheers,
Darren.

Hey Darren,

Great! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.