• I have several users on site that are creating content. I also have some custom post types.

    On Author page i want to show allposts by that author, but I want it to include some custom post types too.

    AQL has option to include additional post types in query but that option is available only if Inherit query from template is turned off.

    if ‘Inherit query from template’ is turned off then I get all posts not posts by user which profile is displayed. Tо filter by author, I have to manually specify author filter. That means I would have to create specific page for each author and then set query for each of them, and then manually handle listing all authors and everything else regarding listing authors.

    At the end I am unable to show list of any custom post type on User profile archive page, as I have to turn off ‘Inherit query from template’ to be able to set post type, and If I do that then filter by author stops working.

    Is it possible to allow setting additional post types even if ‘Inherit query from template’ is turned on? Actually, it would be useful if lots of other options are available in such case, so we can set various additional filters on top of inherited query.

    I have same issue with archives. For Archives ‘Inherit query from template’ has to be set to on for archive to work, but again, i want category archive to show not just posts but also some Custom Post types as they all share categories. Same goes with tag archive.

    • This topic was modified 2 years, 8 months ago by pedjas.

The topic ‘Problem listing posts on Author page’ is closed to new replies.