dustinxsober
Member
Posted 1 year ago #
using a SLIGHTLY (read: visually) modified version of the 2010 theme on a self-hosted wordpress blog. can't link to it as it's password protected with company sensitive posts unfortunately.
using anything but the default permalink setting, the post titles do not link to their post.
tried:
function flush_myrewrite_rules() {
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
add_action('init', 'flush_myrewrite_rules');
but then was just given a slightly different error.
dustinxsober
Member
Posted 1 year ago #
edited my first post as i found a solution for links being stripped from summaries here.
links on the front page post:
the default theme would show the full article; you probalby have changed this to show the excerpt, which does not show any html tags.
one possibility is to set this back to show the full post, and use the 'more' tag in the posts;
other possibility is to use handwritten excerpts (below the post editor), with the links.
http://codex.wordpress.org/Customizing_the_Read_More
permalinks:
is your .htaccess writable?
http://codex.wordpress.org/Using_Permalinks
dustinxsober
Member
Posted 1 year ago #
@alchymyth:
permalinks - yes, .htaccess is writeable.
links - fixed that problem. needed to change the first line of:
<?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">→</span>', 'twentyten' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
to
<?php if ( is_search() ) : ?>