Use wppa shortcode/functions in PHP | tag.php
-
Dear Jacob,
I’m cleaning up my site and right now I’m on the /tag/ pages. They (right now) only show all my articles regarding the TAGs. What I want to do is the following:
On each tag-page (i.e. https://fosm.de/tag/port-ellen/) show all articles AND pictures with this tag.
I found the Shortcode for Filtering on tags in your docu. It would read like this for me:
[wppa type="slide" album="#tags,tag1" size="auto" align="center"][/wppa]
Where tag1 is the Tag regarding the actual tag-Page.
If I enter this code into the description it is not working. You mentioned that this has to sit in the LOOP. The description is used in the HEADER in my theme.
Can I adjust my tag.php to do the following:
CASE #ofpictures = 0 => do not show anything = 1 => show only one picture (not the slideshow) >1 => slide
Best would be to have this at the end of all articles shown (but first page if pagination).
i.e.: https://fosm.de/tag/port-ellen/
Pictures should show up before the closing Text “FoSM – Friends of Single Malt – ist ein deutschsprachiger Blog rund um Single Malt Whisky….”Doing it in the tag.php would mean to have a generic solution.
Thank you for your advise.
Best regards
PeterBTW: using wppa+ 5-4-24-001
https://www.ads-software.com/plugins/wp-photo-album-plus/
- The topic ‘Use wppa shortcode/functions in PHP | tag.php’ is closed to new replies.