Reply To: Masonry Layout with custom taxonomy templates.

Home Forums Pro Version Masonry Layout with custom taxonomy templates. Reply To: Masonry Layout with custom taxonomy templates.

#14962
Sandra Saenz
Participant

Hi once again,

I am sorry for this second post (I just can’t edit or delete the previous one), but I am new in WordPress and don’t know how it works under the hood. So, in the taxonomy-portfolio.php I’ve completely removed my old code and inserted shortcode generated by plugin and now it looks like:


<?php
/**
 * The taxonomy template file.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package SandraSaenz
 */

get_header(); ?>

	<div class="col-md-12">
        <?php

            echo do_shortcode( '[wmls name="Portfolio" id="4"]' );

        ?>
	</div><!-- .col-md-12 -->

<?php
get_footer();

Now it seems to work:

But the problem is – I can see only titles, but I need images. I am using “Custom Fields” plugin so that client could easily add and edit photos. In my code I get the image with $image = get_field ( 'portfolio_photo' );. And in my old implementation, it worked. What should I do so that the plugin could get and show not only title but images too?

Thank You.