Tagged Questions
0
votes
1answer
39 views
is_mobile as shortcode
I installed the Plugin "mobble" which provides some more conditional tags. As I want to hide some content for mobile devices I tried to build a shortcode [is_mobile]. But I tried many different ways ...
1
vote
1answer
112 views
Check if post has gallery images/media
Is there a Wordpress conditional that I can use to check for gallery images/media in a post?
I do not want to check if the [gallery] shortcode exist in a post.
Attached is a screenshot of what I ...
0
votes
1answer
109 views
Testing for a shortcode using a function. 404 page throwing PHP Notice
I'm using the following function (can't remember where I found it, but I think it was written by pippin so thanks to him) to test for a shortcode.
function has_shortcode($shortcode = '') {
...
0
votes
1answer
542 views
conditional shortcode not working
I'm using a plugin, NextGEN gallery, to display photos. Each gallery from this plugin corresponds to a different sub-page, so I'm using conditional shortcodes to assign the right gallery to it's ...
1
vote
1answer
98 views
conditional tags- how to use with shortcodes
I have a salon website with a gallery page wherein the user must first select a stylist prior to viewing their individual gallery.
I planned on using NextGen to house the images in stylist specific ...
1
vote
2answers
329 views
Conditionally loading Facebook PHP SDK in shortcode
Since 3.3 we can enqueue scripts conditionally right in our shortcode functions, but when I tried to do this with some PHP class (uses session_start() in the __construct() function) as you can guess ...
0
votes
1answer
228 views
hard code shortcode only on specific category
I am looking to embed several shortcodes into my post template, but I want the tags to be conditional to a specific category (and subcats).
I've looked through the codex, but I'm unsure where to ...