Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter cameldance

    (@cameldance)

    Well, I got this solved, and it was a very dumb mistake on my part. With the [php] shortcode plugin I was using, the shortcode serves as the opening and closing <?php and ?> tags, so those tags didn’t need to be included. I was placing those tags inside the shortcode, which was breaking it.

    @justin, your code does work though. I am now using it in place of my code that was calling the shortcode inside my function.

    Thanks for the help!

    Thread Starter cameldance

    (@cameldance)

    Thanks for chiming in @justin! The plugin I’m using for the [php] shortcode is called Allow PHP in Posts and Pages.

    The code that’s creating the cookie is located in the plugin folder for the WordPress Affiliate Platform plugin.

    I think the code you provided is what I didn’t know how to do…figure out what would be the actual straight up PHP code if I weren’t using a shortcode.

    I’ll give it a shot and report back what happens.

    Thanks!

    Thread Starter cameldance

    (@cameldance)

    Is anyone able to provide more specific help? We’re assuming for these purposes that the cookies we’re using are fine, and I have a pretty good handle on page templates. If this issue relates to the template I guess I’m not seeing how.

    I can verify that the code provided does work as-is everywhere outside of the content area of pages and posts (while allowing that there may be another piece to the code that’s part of making it work that I haven’t copied and pasted here), but when I try to bring it inside the content area, i.e. enter it in the page editor so it’s part of the main, editable content of any page, it fails to work.

    I’m assuming that this issue has something to do with the fact that, by default, raw php code entered into the content area of pages doesn’t work.

    I had this same issue. My guess is that within the theme there are some links to files that use a relative file path rather than an absolute path.

    I solved it by copying all the theme files and folders into my child theme, rather than just style.css. Seems to be working fine doing it that way.

    Forum: Fixing WordPress
    In reply to: Double page names

    Cool, I’m glad that worked!

    Forum: Fixing WordPress
    In reply to: Double page names

    I was just having this issue earlier today running the WordPress SEO plugin with the Twenty Eleven theme. What took care of it for me was changing the long, bloated default <title> tag in header.php to simply be <title><?php wp_title(''); ?></title>

Viewing 6 replies - 1 through 6 (of 6 total)