WordPress.org

Ready to get started?Download WordPress

Forums

Custom Permalink Structure Creating Excerpt Problem (2 posts)

  1. vexplorer
    Member
    Posted 2 years ago #

    Hi, I'm having a weird interaction between excerpts and permalinks.

    It seems tied to my custom permalink structure-- when I use one of the default permalink formats, everything is fine, but I need to use a custom structure! The permalink structure I'm trying to use it is:

    /archives/%year%/%year%_%monthnum%%day%/

    When I use this structure, the posts show as full on the blog's front page, but all the single post pages show only an excerpt-- if you click the "continue reading" link at the end of the entry, it just refreshes the page.

    My blog's front page is http://ptca.org/voice/new/

    An example post with this problem is here:

    http://ptca.org/voice/new/archives/2011/2011_0705/

    I've already looked at the html for the post, and the <!--more> tag isn't nested in anything else-- can't figure out what the problem could be. Maybe there's something buggy in how I've formatted the permalink? Thanks for any help or suggestions!

  2. Sage Brownell
    Member
    Posted 2 years ago #

    Does this help at all?
    http://codex.wordpress.org/Using_Permalinks

    Make sure to end your structure with either %post_id% or %postname% (e.g. /%year%/%monthnum%/%day%/%postname%/) so that each permalink points to an individual post.
    For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure it takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text "page slug" as the URL), and to compensate, WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties). So, it is best for the first structure tag to be a numeric one, such as /%year%/%postname%/. (Some people recommend /%post_id%/%postname%/ which works for performance reasons but others recommend against it because it is unfriendly to users in the many contexts in which users interact with URLs.) See Otto's technical writeup on the topic as well as this wp-testers discussion.

Topic Closed

This topic has been closed to new replies.

About this Topic