ashworth
Forum Replies Created
-
Also, your shortcode work in the page their solution is embedded onto. Just not within the content areas they give me to place content. So I know your plugin works (I’ve used it before). Just not sure how to get the shortcode to be read and evaluated in this “other area” of WordPress.
Checked the logs…nothing there. ??
Thanks. I will check that.
Unfortunately, what I’m seeing…is about the equivalent to what I would see when a shortcode text outputs to a post or page. Generally that means that a shortcode isn’t being evaluated at all in said content area.
That didn’t work.
Here’s the oddity that I was trying to say in my first post, though. [insert_php] isn’t even being executed in their area that I put your shortcode. I’m confident that if I can get your shortcode function to work, that this will work as intended…but I don’t know what to do in order to get [insert_php] to actually execute as PHP.
Right now, the shortcode itself (yours) is getting output to the URL, which means it’s not being parsed. As for what needs to be done in order to force it to be parsed…not sure.
Interesting. I tried echo first…with no luck.
Let me try with your example.
Thanks David.
Basically it’s like this. I have these page templates. We’re using this plugin. If a page has “any” sidebar applied to it via the dropdown when editing the page, then the page template needs to output the sidebar. If it doesn’t, then we shouldn’t show the sidebar PHP function at all.
Right now, I have a Bootstrap-based theme that uses span9 (content) and span3 (sidebar). What we want is a way to detect if there was no “Custom Sidebar” set…in which case, we’d prefer to have the content container have span12 (full width) and simply not output the sidebar at all. So we only output and show the sidebar column if there’s actually a sidebar set for said page.
We’re making this theme custom, not bought. So I just need to figure out how to work the condition statements into the page template in just the right way. I’m just not sure which variables, etc. I should be looking at.
Also, don’t ask me why WordPress is in a “wordpress” sub-folder. It was that way before I inherited the site recently. Crazy developers not knowing what they’re doing lol