Another Cornerstone Filter issue

Hi there, I’ve been reading through the post topics for help but so far I’m still stuck. I’m struggling to get the filters working on a posts list.

I have the posts coming through using the query builder set to show a certain post type, and as far as I can tell everything else should be ok. I’m not seeing why I cant get the filters to affect the returned posts.

Hello @underbitestudio,

Thanks for writing to us.

I checked a couple of pages and layouts, but I’m unable to access your filter setup. To help with your concern, please share the exact page or layout URL so we can access it and debug the issue on our end.

Thanks

Hi Prakash, thanks for the reply.

The page is here:
https://eventbars.underbitesite.co.uk/our-bars/

Hey Emmett,

You should be using the Looper Provider Query String:

The query string may be: post_type=bars&bar-type={{dc:form:data key="bar-type"}}

You need this because this is the only way you can connect the looper and your form.

Hope this makes sense.

Thanks I’ll give that a try today. Quick question though; with the way I have these custom posts setup - post type, taxonomies, etc, why is it I can’t access/loop them as per the instructional video on YouTube? I’m wondering at what point this went wrong?! Does that make sense?

Thanks

Hello Emmet,

You are on the right track. You can access the post types and taxonomies. However, the issue is that “Our Bars” page is a normal page , not an archive page.

  • To display all your custom post type items (bars), you need to use a Looper Provider to return all the bar items.
  • If you are looking for the Bar archive (e.g., yoursite.com/bars ), you may have disabled the archive when you registered the custom post type.

To display all bars on a normal page, which you already have;

  • Add a Looper Provider (e.g., on a Row or Div).
  • Set Type to Query String .
  • You can use this query string, post_type=bars.
  • Set Posts Per Page to -1 (or a specific number).
  • Add a Looper Consumer inside to display each bar’s content.

Thanks.

I see, that makes sense now. There was a reason I chose a normal page over the archive, I think it was for the URL/navigation. That said, is there a way to structure the URL so that these individual bars, which are posts, are children of the “our bars” page, or should i copy the page into a new archive page to make that possible? And would that archive page be accessible from the main navigation?

Hey Emmett,

So right now, your individual bar links are outputting with /bars/ in the URL (e.g., .../bars/le-petit-juliette-coffee-bar/ ), but you want them to sit seamlessly underneath your parent page at /our-bars/ .

To change this so they drop the /bars/ prefix and adopt /our-bars/ instead, you just need to update that specific rewrite setting in ACF.

Here is exactly how to shift it over:

Step 1: Update the Permalink Slug in ACF Pro

  1. Go to ACF > Post Types and edit your Bars CPT.
  2. Ensure Advanced Configuration is turned On .
  3. Head over to the URLs tab.
  4. Set Permalink Rewrite to Custom Permalink .
  5. In the URL Slug field, change it from bars to exactly: our-bars
  6. Make sure Has Archive is set to False (since you already have your native page handling the main display at that URL).
  7. Save your changes.

Step 2: Flush Your Permalinks (Crucial)

Because WordPress caches your old /bars/ structure, you have to tell it to clear its routing table, or your new links will give you immediate 404 errors.

  1. Go to Settings > Permalinks in your WordPress sidebar.
  2. Scroll straight down to the bottom and click Save Changes (you don’t need to alter any text fields here).

Once that’s done, your single items will instantly migrate over to the clean [https://eventbars.underbitesite.co.uk/our-bars/le-petit-juliette-coffee-bar/](https://eventbars.underbitesite.co.uk/our-bars/le-petit-juliette-coffee-bar/) nesting structure, aligning perfectly beneath your main standard page.

Thanks Christian, that’s a great help. I suspect I ran into an issue when changing the URLs in ACF as I think I had created my custom posts in CPTUI and there may have been a conflict. Fort ease, I’ve simply changed the slug of the “our-bars” page to “bars” which works fine and doesnt cause any issues for me.

Thanks again for taking time to help and provide so much detail

Glad that we were able to help you.

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