WordPress.org

Ready to get started?Download WordPress

Forums

Awesome Filterable Portfolio
[resolved] Embed Portfolio in Page Template (2 posts)

  1. Ian Crasta
    Member
    Posted 11 months ago #

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

    http://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="http://<?php echo get_post_meta($post->ID, 'fw_link_portfolio', true);?>">Go to work</a>
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    	</div>

    Thank you!

    http://wordpress.org/plugins/awesome-filterable-portfolio/

  2. BriniA
    Member
    Plugin Author

    Posted 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.