Support » Plugin: Awesome Filterable Portfolio » Embed Portfolio in Page Template

  • Resolved Ian Crasta


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

    I would like to embed it below “Work Much”

    Here is the PHP code for that section/page:

     * 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 class="span4 border description-text">
    				<h3><?php the_title(); ?></h3>
    				<?php the_content(); ?>
    				<a class="link-portfolio" href="http://<?php echo get_post_meta($post->ID, 'fw_link_portfolio', true);?>">Go to work</a>
    		<?php endwhile; endif; ?>

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author 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.