If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
June 13, 2013 at 7:38 pm #24774
I really need a helping answer to the following questions, please:
1. Would it somehow be possible to have the meta fields for the portfolio entries on two columns? I have managed to resize the image slideshow to a width of 350px, leaving the description with 550 px, therefore I would need the data to go on two columns, rather than one.
2. The “8 latest portfolio entries” (latest-portfolio-archive) which is on the Archive template – how could I also get it to show in a space on my home page? I managed to separate it in a new template I’ve made, so it has no sidebar or latest blog posts. However, I cannot get its content to appear on my home page no matter what :(
Thank you!June 15, 2013 at 1:17 pm #124689
To show the last 8 portfolio entries, you need to make a dynamic template and add it to your homepage
NickJune 15, 2013 at 8:36 pm #124690
Thank you very much for your response.
In fact, I was searching for a way to only get that part exactly as it looks here:
to show up in a column (that meaning a certain width, say 75%, not full width) on my dynamic frontpage template, where I defined the columns… As I said, I managed to isolate its code in a new template, clean up the sidebar, blog and archive links, and that’s pretty much it (I’m far from being a php guru, unfortunately).
As I’ve read so far, it is a special page template, so any more help would be welcome.
Also, my meta question still stands, it would be great if I could get an answer for that too? Even if it’s “nope, not possible to do it” :)
JoJune 15, 2013 at 9:07 pm #124691
Oh, I get it. You want the same archive page but only showing the portfolio items in the style of posts. No problem. Lets take care of this then we will address the other issue.
1) Open up notepad and create an empty file called template-parchives.php
2) Add the code below to the empty page, save and upload to server into the main theme folder.
global $avia_config, $more;
<!-- ####### MAIN CONTAINER ####### -->
<div class='container_wrap <?php
<div class='template-archives content <?php
'posts_per_page' => 8,
'post_type' => 'portfolio'
echo "<h3>" . __('The 8 latest Portfolio Items', 'avia_framework') . "</h3>";
echo "<li><a href='" . get_permalink() . "' rel='bookmark' title='" . __('Permanent Link:', 'avia_framework') . " " . get_the_title() . "'>" . get_the_title() . "</a></li>";
$avia_config['currently_viewing'] = 'page';
<!-- ####### END MAIN CONTAINER ####### -->
3) The End :)
The topic ‘Portfolio meta fields in columns? And latest portfolio on front page.’ is closed to new replies.