WordPress.org

Forums

[resolved] Where does "Your blog does not currently have any published posts." come from? (3 posts)

  1. sleeplessinDC
    Member
    Posted 2 years ago #

    On a page in my site, a strange sentence appears within the first bullet item because I had [archives] in the HTML code.
    Here is how the text appears on the page (it does not include the information that these are archives but adds the sentence about no posts):

    • Documentation Consultants & Contractors
    • Your blog does not currently have any published posts.

    • Jobs Board
    • Resumes Board

    Here is what the code looked like:

    <ul>
    <li><a href="http://www.stcwdc.org/doc_company_resources.shtml">Documentation Consultants & Contractors</a>[archives]</li>
    
    <li><a href="http://jobs.stcwdc.org/jobs/">Jobs Board</a></li>
    
    <li><a href="http://jobs.stcwdc.org/resumes/">Resumes Board</a></li>

    If I change [archives] to (archives), the text shows correctly.

    • Documentation Consultants & Contractors (archives)
    • Jobs Board
    • Resumes Board

    Why do the square brackets bring in spurious sentences? I use them for editor's comments throughout the site and I just noticed this strange behavior.

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Possibly because square brackets are used for shortcodes - so you may be inadvertently doing something.

    http://codex.wordpress.org/Shortcode

  3. sleeplessinDC
    Member
    Posted 2 years ago #

    Ah. I checked the shortcode API and [archives] isn't listed in the list of defaults for WP but it may be in some plugin. I guess my best solution for editorial comments is to make sure they are more than one word so they don't look like a shortcode.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic