• I am using Worpress 3.01 with the Twenty-Ten v-1.1 theme. I wrote a post to link to two pdf files. When I do a preview of the post everything is fine and the pdf files show up. However, once the post is made, the links disappear and the link names become standard text.

    This can be found at https://qvamath.net and click on the “Contest” tab. The words “Algebra Stretch 1” and “Probability Stretch 1” should be on separate lines and should be links.

    When I go back and check the post, everything for the links is still in place.

    I suspect the links are being stripped by the theme. Does anyone have any thoughts on this?

    Many thanks

    Don Simmons

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Don.

    The twenty theme wouldn’t strip links. How are you uploading and posting the links?

    Don when inside the post click the add video ( second icon from left, top of post below title field ) and simply upload the file and insert into post, then publish.

    WordPress will acknowledge the file and create a link for download.

    [Link removed – this is not an advertising forum.]

    Thread Starter raidermath

    (@raidermath)

    Jogfly,

    I’m afraid I received no love from your suggestion.

    I first put the links in by using the link button. The links were html-constructed correctly.

    I just tried your suggestion — using the video icon — and the link was constructed identical to the previous links. Again I did a “preview” and the links showed properly and worked. BUT when the post was updated, the links disappeared again.

    TwentyTen uses the_exerpt() in the category archives, which does strip any html tags from the shortened content.

    to change this, you need to edit loop.php; find this section:

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
    			<div class="entry-summary">
    				<?php the_excerpt(); ?>
    			</div><!-- .entry-summary -->
    	<?php else : ?>
    			<div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    	<?php endif; ?>

    change the first line of the above code to:
    <?php if ( is_search() ) : // Only display excerpts for search. ?>

    Thread Starter raidermath

    (@raidermath)

    That did it! Everything works a treat.

    Many thanks.

    Don Simmons

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Links disappearing in a post’ is closed to new replies.