• Resolved andrew.simone

    (@andrewsimone)


    I am currently developing a my first theme and theme check is telling me I am not using tags. I do, however, have a tag cloud page when it struck me that it was demanding I place tags somewhere in the Loop, but it’s not clear to me. The documentation, also, doesn’t seem to comment on it.

    I hate to have to add them to my singlepage.php, it sort of destroys the aesthetic I am going for.

    I wouldn’t care except I was hoping to submit this to the wordpress theme directory.

    Any thoughts from more experienced folks would be helpful.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Chip Bennett

    (@chipbennett)

    I see you have marked the topic as “resolved”, so I assume you sorted it out?

    For anyone else who might have the same question: the error message you were receiving probably had to do with the Tags: header tag in style.css, i.e. the standard list of Theme-descriptive tags used to filter search results.

    Otherwise, it would have specified which function it was looking for, e.g. the_tags() – in which case, you would just need to find an appropriate way to incorporate the specified function.

    Thread Starter andrew.simone

    (@andrewsimone)

    To be honest, resolved more meant “resigned” to not have the theme in the official repository, but that’s helpful. It gives me a better context to figure out what I might be missing. Thanks.

    Chip Bennett

    (@chipbennett)

    Let me know if I can help you figure it out. Seems like this ought to be a simple issue to get past, and we’d love to see your Theme submitted.

    If you can post the exact error message, I’m sure we can figure out the issue and get it resolved.

    Thread Starter andrew.simone

    (@andrewsimone)

    Fantastic.

    Thread Starter andrew.simone

    (@andrewsimone)

    The two issues are as follows

    REQUIRED: This theme doesn’t seem to display tags. Modify it to display tags in appropriate locations.

    REQUIRED: Could not find wp_link_pages in the PHP files. The theme must use wp_link_pages() to provide for multi-page posts.

    The second is easily fixable, but the theme ‘not displaying tags’ makes me think that I need to have tags appear in connection with my posts which I’d prefer not to do.

    I suppose, if that were the issue, I could simply add them with a note in the “read me” saying the theme wasn’t designed with tags in mind.

    Chip Bennett

    (@chipbennett)

    Okay, for the first message: make sure that your Theme is outputting the_tags() somewhere in the Loop.

    For the second message: inside the Loop (in at least both single.php and page.php), change this:

    the_content();

    to this:

    the_content();
    wp_link_pages();

    Note that you will need to account for clearing floats at the end of the_content(), so you may want to use something like this:

    the_content();
    wp_link_pages( 'before=<p class="link-pages">Page: ' );

    And then in style.css, add:

    .link-pages {
         clear:both;
    }
    And that should take care of both of those errors.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘theme check fail and tags in the loop’ is closed to new replies.