Tagged: category
Three questions:
1) Is there a way to insert the wordpress title (the_title) somewhere in the page? The code block item in the editor doesn’t seem to work for this. I’d like the title to appear on a portfolio page below a full width video.Can I create a custom template for this?
2) Same question but for inserting the category of the portfolio post somewhere
3) Can I have list of related portfolio posts appear at the bottom portfolio item but NOT include the current portfolio item?
Any answer to these?
For the first two, I’d just need away to create my own template for the Portfolio and insert some PHP code in it.
How do you do this?
For the third, there must be a way to create related posts but exclude the current post.
How do you do this?
Hey!
Thank you for using Enfold.
1.) Please use the advance layout builder. Use the special heading. You can’t use the the_title function outside a loop and without using a php enabler plugin to enable php on wordpress editor. Please refer to the wordpress codex.
2.) If you want to show the category of the portfolio post. Please edit the config-templatebuilder > avia-shortcodes > portfolio.php. Use the get_the_category or get_the_term function.
3.) If you’re not using the advance layout builder for portfolio items, supply a tag for each post to show as related entries. Edit single-portfolio.php, find this code:
$avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
get_template_part( 'includes/loop', 'portfolio-single' );
Below, add this code:
//show related posts based on tags if there are any
get_template_part( 'includes/related-posts');
Regards,
Ismael