Viewing 15 replies - 1 through 15 (of 15 total)
  • Craigh1983,

    I’ve had this happen the odd time before, is there a draft and a published version of the post by any chance?

    Har

    Thread Starter Craigh1983

    (@craigh1983)

    I dont think so no. Its doing it on all of my posts ??

    Could you pastebin your code again, it was swiftly removed by the very quick forum mods!

    Thread Starter Craigh1983

    (@craigh1983)

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter Craigh1983

    (@craigh1983)

    Did u get it harmck?

    You’re supposed to go to https://pastebin.com/ dump the code in there, and link it back here.

    The mods will remove the code, I’ve copied it down for now, but it’s just one of the rules this forum has. I’ve made the mistake before. They don’t want a lot of code put up on pages, generally anything longer than 10 lines gets deleted.

    Are you using a theme built by someone else?

    weaver_the_content_featured_single();

    The above function could exist in your function.php file, would it be possible for you to find it, pastebin the code, and post the link here, as I was to see what it is doing, this is seemingly where the post content is being output.

    Cheers.

    Best to not anger the mods, and persistently break the rules, for future large code dumps, do use the pastebin website.

    Thread Starter Craigh1983

    (@craigh1983)

    Ahhh ok I will try to get that sorted… unfortunately I am not going to be able to do that right this second but I can do it first thing in the morning if thats ok with you?

    Thanks so much for your help harmck

    Thread Starter Craigh1983

    (@craigh1983)

    By the way the theme is the twenty ten theme I think. I downloaded it.

    Cool, well it’s morning where I am, so it maybe at least 24hrs till I’m around again. I’m on New Zealand time!

    Thread Starter Craigh1983

    (@craigh1983)

    Ok ive managed to do it I think!

    Here is my pastebin…
    https://pastebin.com/y0FcWBfe

    Thread Starter Craigh1983

    (@craigh1983)

    How you understand any of that I do not know lol but I pasted it from function.php anyhow.

    I have to go now but I will look at your reply tomorrow. Again thanks so much for doing this!

    Thread Starter Craigh1983

    (@craigh1983)

    Hi harmck,

    Did you manage to have a look at that code for me at all and find the problem?

    Hi Craigh,

    This is what it’s doing, but not looks out of the ordinary why it would be doubling up the posts.

    function weaver_the_content_featured_single($force_featured=false) {
        if (weaver_getopt('ttw_show_featured_image_fullposts') || weaver_is_checked_post_opt('ttw-show-featured') || $force_featured) {
    	?>
    	<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', WEAVER_TRANS ),
    	    the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_post_thumbnail( 'thumbnail-single' ); ?></a>
    	<?php
        }
        the_content();
    }

    So unfortunately I’m at a loss. I’m just speculating about what the problem might be… see if there is anything unusual about your posts, check for duplicates etc.

    Hope you get this sorted.

    Post a query to the person who built the theme. They might know better how the theme is constructed and what is happening.

    https://wpweaver.info/

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Text and Images are showing twice in a post! Please help! :(’ is closed to new replies.