Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author livemesh

    (@livemesh)

    There are a number of portfolio plugins available on www.ads-software.com which implement this custom post type – you may use one of them. In the build query window in the Grid widget editor, you can choose the corresponding custom post type for portfolio.

    Here is one example of such a plugin which has been used successfully by other users of this plugin for building a portfolio –

    https://www.ads-software.com/plugins/portfolio-post-type/

    Thread Starter dimizu

    (@dimizu)

    Great with https://www.ads-software.com/plugins/portfolio-post-type/ works fine ??

    3 questions:
    a) Would this mean that in principle works with all custom post types?
    b) Is there a chance that works also with pages? When I select pages in the build query windows, then I do not see results.
    c) When b) negative, do you plan this feature for the future?

    Thanks.

    Plugin Author livemesh

    (@livemesh)

    a) Yes – it works with any custom post type
    b) We have disabled it with pages since it leads to a infinite loop when displaying the content of a page since the widget is part of a page by itself.
    c) We do not plan to add it in future. You can remove this line

    <?php
                if (get_post_type() === 'page')
                    continue; // skip pages since they can run into infinite loop when users choose All option in build query
                ?>

    in the widget file includes/widgets/lsow-portfolio-widget/tpl/default.php file if you need to display the page. You will be able to subclass this widget class in your child theme.

    Thread Starter dimizu

    (@dimizu)

    Ok I understand. When I remove this lines and when I not use the page itself in the query then works fine ??

    But is there not a possibility to add something link this?:

    if ((get_post_type() === 'page') && (get_the_ID() == ID_of_page_where_widget_is_a_part))
                    continue;

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Livemesh Portfolio without Jetpack’ is closed to new replies.