Support » Fixing WordPress » Articles not listed in author’s page nor in backoffice

  • On my self hosted WordPress blog I have peculiar case involving a couple of authors (over a total of more than 20):
    – They can write and publish articles, and the single article is listed and accessible with no problems from the blog front page (example, the last article from author biduum – )
    – If I access the author’s page from the front end, no article is listed/visible (
    – If I access the author’s article list from the back end, it also shows no articles (I cannot paste a link to that).

    Seemingly the query behind what populates an author’s articles list fails silently, and it gives me no hints on what’s happening (or not happening) there.

    Any suggestion about how to properly investigate this?

    • This topic was modified 6 months, 3 weeks ago by  marcozambi.
    • This topic was modified 6 months, 3 weeks ago by  Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You’re right, the query is messed up somehow. The first step would be to examine the SQL query for clues. To do so, you need to identify the theme template responsible for listing author posts. There are template identification plugins that can help you if you have trouble.

    On the template, there should be a line containing something like while( have_posts()):. Above this line, temporarily insert the following:

    global $wp_query;
    echo "<br>Query SQL: {$wp_query->request}<br>";

    Save the change, then reload the author page. Make note of the SQL shown. Once you have the SQL, you can remove the added code from the template.

    It should be evident why the SQL failed even if you don’t speak SQL. There will be something that makes no sense, like requiring a certain taxonomy term that does not belong, or even WHERE 1=0 (which means WP could not parse the request). Once you’ve identified the reason for failure, the task becomes resolving the cause, which can be obvious or elusive. But without knowing what to look for, the task is hopeless.

Viewing 1 replies (of 1 total)
  • The topic ‘Articles not listed in author’s page nor in backoffice’ is closed to new replies.