WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Where does "Your blog does not currently have any published posts." come from?

[Resolved] Where does "Your blog does not currently have any published posts." come from?

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • WPyogi

    @wpyogi

    Forum Moderator

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

    http://codex.wordpress.org/Shortcode

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Where does "Your blog does not currently have any published posts." come from?’ is closed to new replies.
Skip to toolbar