• Resolved Ian

    (@iancrasta)


    Hey, could you please elaborate on how I can embed the portfolio directly on a template? I have no knowledge of working with PHP.

    https://www.taaneyabalaji.com

    I would like to embed it below “Work Much”

    Here is the PHP code for that section/page:

    <?php
    /**
     * Template Name: Template Portfolio
     *
     */?>
    	<div class="container" id="portfolio">
    		<h2 class="section-title"><?php the_title(); ?></h2>
    		<?php query_posts('post_type=portfolio'); ?>
    		<?php if (have_posts()) : while(have_posts()) : the_post() ?>
    		<div class="row item">
    			<div class="span8">
    				<?php the_post_thumbnail('portfolio'); ?>
    			</div>
    			<div class="span4 border description-text">
    				<h3><?php the_title(); ?></h3>
    				<?php the_content(); ?>
    				<a class="link-portfolio" href="https://<?php echo get_post_meta($post->ID, 'fw_link_portfolio', true);?>">Go to work</a>
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    	</div>

    Thank you!

    https://www.ads-software.com/plugins/awesome-filterable-portfolio/

Viewing 1 replies (of 1 total)
  • Plugin Author BriniA

    (@brinia)

    You can add the following PHP code wherever you want to display the portfolio
    <?php afp_shortcode (); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Embed Portfolio in Page Template’ is closed to new replies.