• Resolved austtr

    (@austtr)


    Hi… newbie using WP for the first time. See http://www.austtravel.com.au/wp/ which uses the default twenty ten template.

    I’ve added my own categories, two posts and a new page. Everything that is opened from a widget area (recent posts, archives, categories) opens as an excerpt. The “Leave a Comment” function does not work and also reverts to an excerpt.

    Does anyone know what is happening? I’ve spent hours on this and can’t find the problem or any published solutions.

    TIA

Viewing 9 replies - 1 through 9 (of 9 total)
  • You should probably create a special loop-category.php template to override the built-in loop.php, or create a child theme and modify loop.php there.

    However, even though I do not recommend it, I think what you want can be done by changing loop.php around line 132 from this:

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

    to this ( by removing ‘is_archive() ||’:

    <?php if ( is_search() ) : // Only display excerpts for archives and search. ?>
    			<div class="entry-summary">
    				<?php the_excerpt(); ?>
    			</div><!-- .entry-summary -->
    	<?php else : ?>
    Thread Starter austtr

    (@austtr)

    Thank you! The complete posts are now loading as expected… but.. the “Leave A Comment” link is not functioning. Click the link and nothing happens.

    Any suggestions on how to fix that?

    TIA

    I can’t find it. Will you please put the is_archive() test back in so I can look at that?

    Thread Starter austtr

    (@austtr)

    The original loop.php has been reinstated.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What are your permalinks set to?

    I’m seeing this as the URL off the main page for comments and i KNOW it’s wrong.
    http://www.austtravel.com.au/wp/backpacker#respond

    This url http://www.austtravel.com.au/wp/backpacker is for a category. Not a blog post.

    Thread Starter austtr

    (@austtr)

    Permalinks set to:

    Custom Structure: /%category%

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well there’s your problem 🙂

    You MUST end your permalinks with either a call to post_id or postname.

    Read http://codex.wordpress.org/Using_Permalinks for details.

    Thread Starter austtr

    (@austtr)

    Thank you very much. It is working again now after I set the custom permalinks to /%category%/%postname%/

    I see now where I went wrong. That permalink setting creates page URL’s like http://www.austtravel.com.au/wp/holiday-accommodation/beware-cheap-gold-coast-accommodation/ . I was trying to tighten up the SEO with shorter URL’s without realizing I was stuffing up the functionality of the application.

    What is the best way to improve the SEO aspect of page URL’s?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You can shorten the page slug by editing the post and clicking on the slug under the page title.

    I think your links are fine for SEO. And remember, SEO gets people TO your site, but good content KEEPS them there 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Posts Showing As Excerpts’ is closed to new replies.