• Hi everyone,
    The links in my posts are working in the previews just fine but when I publish the post the links dont work at all and its getting really frustrating. Ive tried it from the visual window and the html window. Nada either way.
    Any ideas?
    Thanks in advance.

Viewing 15 replies - 16 through 30 (of 35 total)
  • Looks like the links are now working.

    Thread Starter girliegirl

    (@girliegirl)

    No, links are still not working. Heres an example…In this post, the words Beyond The Rack are linked and work fine…https://www.couponboom.com/2009/06/beyond-the-rack/
    But in this post, the words Google Coupons are linked but not working, just dead text.
    This is what confuses me, why it would work in some posts but not in others?
    Thanks for your time.

    Thread Starter girliegirl

    (@girliegirl)

    Oops, forgot to add the Google Coupon post…. https://www.couponboom.com/2009/06/google-coupons/

    yeah.exactly same. the links in your blog entries will work in a single post page but not in the main page, its like it didplays only an excerpt from that post.

    check default.php, whats inside that template?
    does it have this code?

    if(is_home()) {
                  if(strlen(get_the_content())>380)
                    echo substr(strip_tags(get_the_content()),

    Thread Starter girliegirl

    (@girliegirl)

    Hmm, I dont seem to have a default.php. Where would that be? Its not in the main directory, or the theme directory.

    theme directory..
    or inside
    theme directory/theme-name/includes/default.php

    The google coupon link in the post https://www.couponboom.com/2009/06/google-coupons/
    works for me.

    Thread Starter girliegirl

    (@girliegirl)

    nazcar, I found the default.php and I dont see the code you showed….do you?

    <div id=”container”>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/content-top-home.gif” alt=”logo” style=”float: left;” />
    <div id=”left-div”>

    <!–Begind recent post–>
    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>

    <div class=”home-post-wrap”>

    <div class=”date”>
    <div class=”month”><?php the_time(‘M’) ?></div>
    <div style=”clear: both;”></div>
    <div class=”day”><?php the_time(‘j’) ?></div>
    </div>

    <div class=”post-right”>
    <div class=”featured-categories”><?php the_category(”) ?></div><span class=”author-link”><?php the_author_posts_link(); ?> </span>
    <div style=”clear: both;”></div>
    <h2 class=”titles”>” title=”Permanent Link to <?php the_title(); ?>”><?php the_title() ?></h2>
    <div style=”clear: both;”></div>
    <?php $thumb = get_post_meta($post->ID, ‘Thumbnail’, $single = true); ?>
    <?php if($thumb !== ”) { ?>
    ” title=”Permanent Link to <?php the_title(); ?>”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=165&w=165&zc=1″ alt=”<?php if($thumb_alt !== ”) { echo $thumb_alt; } else { echo the_title(); } ?>” class=”thumbnail” />
    <?php } else { echo ”; } ?>
    <?php the_content_limit(410, “”); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <div style=”clear: both;”></div>
    <div style=”margin-left: 110px; margin-top: 5px;”>
    <?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); }
    else { ?>
    <p class=”pagination”><?php next_posts_link(‘« Previous Entries’) ?> <?php previous_posts_link(‘Next Entries »’) ?></p>
    <?php } ?>
    </div>

    <?php else : ?>

    <h2 >No Results Found</h2>

    <p>Sorry, your search returned zero results. </p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/content-bottom.gif” alt=”logo” style=”float: left;” />
    </div>

    kmessinger……I meant not from the front page, where the snippet of the blog post is.

    this one:

    <?php the_content_limit(410, ""); ?>

    try replacing that code with this one:

    <?php the_content('more...'); ?>

    PS: backup that default.php, just in case.

    Thread Starter girliegirl

    (@girliegirl)

    Well, not so sure thats the solution but it will work for now. In my theme options theres a list for how I want the blog to be viewed in post format or default. I was using default and your code basically changed it to a post format. Not a fix but it does make the links active right up front so I guess Ill stick with it for awhile.
    Thanks so much for the help!

    you can insert <!--more--> tag in your post to cut the text to be viewed on your main page.

    Thread Starter girliegirl

    (@girliegirl)

    Thats slick, thank you. Ive only been using wordpress for a week or so now but Ill get the hang of it…..sooner or later.
    Thanks for your help, and for dropping in! ??

    This is exactly the problem I have having. Links work in preview and single post mode, but not on main page. I have looked everywhere in the theme directory for the default.php, and can’t find it anywhere. Is it possible that a theme would not have a default.php?

    I’m having the same problem at https://www.secondhelpingonline.com — it’s working on main page, but not posts.

    this is incredibly frustrating.

    OK I am having this EXACT same problem. If you look at my blog: https://whatsking.com/alpha-style/

    You will see that none of my links work. They are highlighted like they are a working link, but it seems that the webpage is reading this blog as an image???

    You cannot click any of the links. Can someone please solve this problem?!

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘Links work in preview but not once published (?)’ is closed to new replies.