Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #571470

    Hi there,

    I have set up a page that diplays the portfolio project with the masonry layout http://217.199.187.197/techniker.co.uk/test/. I have a category called “Bridges”. This categy includes only 2 projects which are very old.

    Currently I have set the post number to 20 and the “Bridges” category does not appear at the top.

    I assume this happening because none of the 20 items in under category.

    I know I can set the post number to 50. However I would prefer not to.

    I have spoken to you about the issue of filtering and number of posts in a previous topic (https://kriesi.at/support/topic/portfolio-grid-only-filter-items-on-current-page/ ) and you suggested using the mansonry loayout.

    Is it possible to display all the categories at the top regardless of them being featured in the fist 20 (in this instance) posts?
    If you could please let me know

    Many thanks
    Panos

    #571489

    Hi PanosK!

    can you please share backend access? If a category is not visible, it is because there are no data inside, so would like to give it a further look / investigation.

    Thanks a lot

    Regards,
    Basilis

    #571520

    Hi Basillis,

    The category is visible if I set the post number to 50 (or more).

    Many thanks
    Panos

    #572077

    Hi Basillis,

    Did you have a chance to look at this? If you could please let me know

    Many thanks
    Panos

    #573617

    Hi Basillis,
    Am I to assume the only way to have “Bridges” displayed is by setting the post number to 50?
    If you could please let me know

    Many thanks
    Panos

    #574413

    Hi there,

    Can somebody please respond?

    Many thanks
    Panos

    #575193

    Hi!

    Sorry for the delay. We actually encountered the same user who wanted the same exact behaviour and this was our response: https://kriesi.at/support/topic/enfold-portfolio-sort-feature/#post-565246

    Clicking an empty category will render the grid blank because the items are not available or is located on another page but if you don’t mind this small issue you can do the same modification as suggested on the previous thread. Modify the masonry_entries.php file.

    Best regards,
    Ismael

    #575690

    Hi Ismael,

    The other thread is about portfolio.php. I modified masonry_entries.php by removing:
    if(!isset($term_count[$term->term_id])) $term_count[$term->term_id] = 0; (line 472)

    However, I still don’t get the empty catery (Bridges) at the categories menu at the top.

    If you could please help.

    Many thanks
    Panos

    #576293
    #576358

    Hi Ismael,

    Unfortunately it has not worked. I still don’t get the empty catery (Bridges) at the categories menu at the top.

    If you could please look into it.

    Many thanks
    Panos

    #577596

    Hey!

    I just tested this on my installation and it displays every categories including the empty ones. Please post the FTP details here. We would like to check it.

    UPDATE: My bad. You have to modify line 138:

    $show_item = in_array($term->term_id, $current_page_terms) ? 'avia_show_sort' : 'avia_hide_sort';
    

    .. replace it with:

    $show_item = 'avia_show_sort';
    

    Regards,
    Ismael

    #577692

    Thank you very much!

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Masonry layout display only the categories of the visible portolio projets’ is closed to new replies.