WordPress.org

Ready to get started?Download WordPress

Forums

Links disappearing in a post (5 posts)

  1. raidermath
    Member
    Posted 3 years ago #

    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 http://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

  2. jogfly
    Member
    Posted 3 years ago #

    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.]

  3. raidermath
    Member
    Posted 3 years ago #

    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.

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    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. ?>

  5. raidermath
    Member
    Posted 3 years ago #

    That did it! Everything works a treat.

    Many thanks.

    Don Simmons

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags