Viewing 7 replies - 1 through 7 (of 7 total)
  • It’s possible that your theme has featured images enabled for posts. If so, you should be able to uncheck that in its options.

    Thread Starter butterflynet

    (@butterflynet)

    Thanks for your reply. I’m not finding any options that will remove the double post. I can either set the “comic/featured image” and have a double post, or not set the “comic/featured image” and have no post. Here’s a link to the problem.

    https://mrcomic.com/june-1-2016

    Thanks for the link. Admittedly, my first suggestion was a bit of a shot in the dark.

    I see you only seem to have the problem on the single comics pages, not on the home page. This may mean that you’ve placed the comic easel do_action code in the wrong spot(s) and now somehow the single pages are pulling it twice – once for the site, in a way, and once for the page. But it’s hard to determine from just seeing the displayed code. What theme are you using and where did you place the code?

    For now, maybe try this: Find the

    do_action(‘comic-area’);

    code in your header file (assuming it’s the header) and adda homepage-only condition to it so it reads something like:

    <?php if(is_home()) { do_action(‘comic-area’); } ?>

    (give or take a few ; – I always get those wrong. If it’s wrong, you can easily tell by the page not loading.)

    This should ensure that the comic display you’ve added only shows on the home page. Now, on the single comics pages this will achieve one of three things:
    – it’ll load the comic only once;
    – it’ll achieve nothing;
    – it won’t load the comic at all.
    Either way, we might learn something.

    Thread Starter butterflynet

    (@butterflynet)

    Thanks for responding. All I’m finding in the “header.php” is, “do_action(‘easel-page-head’)”. I don’t see “do_action(‘comic-area’)”.

    “do_action(‘easel-page-head’)” belongs to the Easel theme. So you’re using that?

    If the “do_action(‘comic-area’)” isn’t in header.php, it may also be in index.php and single.php, or in layout-head.php. Thinking about it, I may be the only one who uses header.php for that.

    I can’t read your source code from here, of course, just the displayed code, but it appears to be below the “content wrapper” tag which, in Easel, is somewhere in layout-head.php.

    If it’s in single.php, make sure it isn’t doubled there by accident. That would solve the problem pretty quickly.

    Thread Starter butterflynet

    (@butterflynet)

    Thank you Max. It was in the “layout-head.php”. That fixed the problem!

    Glad to help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Double Post’ is closed to new replies.