A
A
Artur2018-02-28 17:23:30
HTML
Artur, 2018-02-28 17:23:30

How to display all portfolio projects of Unyson?

It is not possible to display all portfolio projects on the Unyson plugin page. There is no portfolio icon in the page builder, how can I add it there? I tried to insert a function from the documentation on the page that displays a list of projects

<?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : ?>
        <?php $gallery = fw_ext_portfolio_get_gallery_images(); ?>
        <ul class="gallery">
            <?php foreach( $gallery as $image ) : ?>
                <li>
                    <a href="<?php echo get_permalink($image['attachment_id'])?>">
                        <img src="<?php echo $image['url'] ?>" alt=""/>
                    </a>
                </li>
            <?php endforeach ?>
        </ul>
    <?php endwhile ?>
<?php endif ?>

It turns out an error, the function does not output and below nothing is displayed on the page after it.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question