Adding CPT Slug to Result Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Adding CPT Slug to Result This topic has 5 replies, 2 voices, and was last updated 4 years, 7 months ago by Ernest Marcinko. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts October 28, 2021 at 11:53 am #35379 Jugro22630Participant Hey there, I’m using Ajax Search Pro and I wonder if there’s a way to include CPT slugs. For example, I have a CPT called cakes with /cakes slug. Can I show that in a search result? e.g. Brownies – Cakes? Cheers, Julien October 28, 2021 at 11:59 am #35380 Ernest MarcinkoKeymaster Hi Julien, Via the advanced title and content fields, you can print the post type name via the __post_type pseudo variable. In your case the advanced title field could be something like: {titlefield}[ - {__post_type}] October 28, 2021 at 12:05 pm #35381 Jugro22630Participant Thanks for the quick answer! Is there a list with all variables that can be used? October 28, 2021 at 12:10 pm #35382 Ernest MarcinkoKeymaster Sure! They are listed in the first paragraph of the documentation on the link in my previous answer: https://i.imgur.com/H5qHbjQ.png October 29, 2021 at 9:26 am #35392 Jugro22630Participant Sorry, blind sometimes. Anyways, do you plan on integrating GA4 event tracking anytime? Plugin’s awesome so far. October 29, 2021 at 1:04 pm #35399 Ernest MarcinkoKeymaster Thank you very much! Search event tracking is already integrated. It works on both GA4 and the older gtag and universal event trackers. Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In