Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #21131

    Hi everyone,

    I have a problem with my site, I added tags to portfolio according to the instructions of Dude, the problem lies in finding the elements portfolio by clicking on the tag. I’ll show it on example:

    when you go to this page you will see “Nothing was found”, but portfolio items has tag “mała architektura”.

    I have no idea how to resolve this problem, also I added new taxonomy in according to Nick instructions but that doesn’t work either.

    Anybody has ideas how to fix it? Where is the problem? :(


    Hi mir26kra,

    You may just need to refresh you permalinks. Try going to the WordPress Settings>Permalinks and setting the option to Default. Then save and check the tag archive again.

    If it works, go back and change it to Post name again, save and check it again.




    Hi Devin,

    thanks for reply, I tried it and it doesn’t work, my friend also told me to delete the .htaccess but that doesn’t work either.


    I think the problem is that wordpress doesn’t support custom post types on tag archive pages by default – see (Purchase code hidden if logged out) -page

    – try to add following code to the very bottom of functions.php:

    add_filter('pre_get_posts', 'query_post_type');
    function query_post_type($query) {
    if(is_category() || is_tag()) {
    $post_type = get_query_var('post_type');
    $post_type = $post_type;
    $post_type = array('post','portfolio');
    return $query;


    Hi Dude,

    thank you for your help, it works :)





    Great, glad that I could help you :)

    Best regards,


Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Problem with listing portfolio items on archive page’ is closed to new replies.