nmcmahon
Forum Replies Created
-
Yes. Its directly in my theme. Same location as the property-overview.php file which is working. It just doesn’t seem to want to use the property-overview-featured-shortcode.php file.
Where is the source code for the [featured_properties] shortcode? Perhaps I could try and follow the code and see why it isn’t using the right file…
It wasn’t ticked, but after ticking it, that sadly did not make any difference. It still uses the property-overview.php template, not the property-overview-featured-shortcode.php.
Nothing was done other than the update.
My idea would be that in the property-overview.php, if I can tell if the featured=true option was passed, I could add some logic and testing “if($featured == true) { … }” for example. Then I could display the output differently (in the same way I used to do in the “property-overview-featured-shortcode.php” template).
I am aware of that, but it is using the “property-overview.php” template file. Is there any way within that file I can check for the featured=true?
That way I could update the template file to display the properties how I want to (how I currently have them in my “property-overview-featured-shortcode.php” file).
I am not sure what version I was on before. Have updated to version 2.3.8. I think it was version 2.2 before but can’t be sure.
I am using a custom theme. The previous version allowed me to duplicate the shortcode files from the plugin into my theme so it would use them.
If the “property-overview-featured-shortcode.php” file doesn’t work, is there any way of telling if featured=true has been passed to the [property-overview] shortcode? That way I could update the property-overview.php file to display the properties differently when its featured.
Hi @mariakravchenko,
Apologies – that was a typo in my original post. My file is already called “property-overview-featured-shortcode.php”, but the [featured_properties] shortcode is still using the “property-overview.php” file instead.
Thanks,
Niall