I’m trying to achieve something on a layout template page assigned to a single post type (town) using looper/consumer.
The town post type contains several posts with every post’s title being the town name.
- The goal: display a list of all the post titles (as buttons) on every town page excluding the current post
I was able to achieve the following:
- Created a provider with the Query Builder set to “Town” as post with a count of 20
- Created a button (consumer)
- Button’s URL was is set to
- Button’s name is set to
This brought me very close to what I wanted because it outputted all the buttons that had the name of each town and link to each town page. However, how would I exclude the current (viewing) town page from being displayed?