Peter Hedrich
Forum Replies Created
-
AuthorPosts
-
Peter HedrichParticipant
Wow, this was a quick response.
Yup, adding the code to Custom CSS did the trick.
Tnx a lot
PeterPeter HedrichParticipantHi Bill,
here is my mistake. I was calling the taxonomy directly like in http:imagery.com/in/light instead of creating a page like http://imagnry.com/light. Of course for the taxonomy alone the portfolio-page-template doesn’t apply.
Sometimes seeing the very simple solution is blocked by one’s own stupidity like a fingernail in front of the eye can block the view to the sun.
regards
P.Peter HedrichParticipantUnfortunately these suggested steps exceed my knowledge. Don’t want to order not using the template.
The order function is quite important because there will be in each portfolio group around 50-60 slides.So the question is, why can the home-page-template be ordered and the portfolio-group-template not ?
What I can see is that both templates are almost identical except this part:
in home-page-template
<?php $home_blocks = new WP_Query(
array(
‘post_type’ => ‘block’,
‘posts_per_page’ => ‘120’,
‘orderby’ => ‘date’,
‘order’ => ‘ASC’,
‘no_found_rows’ => true
)
); ?>compared to portfolio-group-template:
<?php
$portfolio_group = get_post_meta($post->ID, “portfolio_group_select”, $single = true);
$home_blocks = new WP_Query(
array(
‘post_type’ => ‘block’,
‘posts_per_page’ => ‘120’,
‘orderby’ => ‘date’,
‘order’ => ‘ASC’,
‘no_found_rows’ => true,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘portfolio-group’,
‘field’ => ‘term_id’,
‘terms’ => $portfolio_group,
),
),
)
); ?>Why does the orderly and order show no results in the portfolio-page-template ?
Peter HedrichParticipantHi Bill,
ordering by date works in page-home-template.php ( http://imagnry.com ), but not in page-potfolio-group.php (all other pages).
Both templates are set to orderby ‘date’ and order ‘ASC’.best regards
PeterPeter HedrichParticipantThe order is changed and everything is working perfectly.
Now it can be filled with tons of blocks.
Thanks a lot for the great and stunningly quick support.
best
P.Peter HedrichParticipantThis reply has been marked as private.Peter HedrichParticipantWorking with the “order” box in quick edit requires to memorize a lot and is not so nice to work with.
I installed this plugin already and of course I could always push up manually the latest post to the top of the list. But this is a bit hard when there are a few hundred blocks. And there will be later these amounts of blocks with a portfolio group for each year.The thing is that I intend to use the Hero blocks intensively as a gallery – the idea is just too good … 🙂 This means on the other side that I skip the whole swipebox stuff.
Is it not possible to change the order in general from descending to ascending in the relevant php-file?
Peter
Peter HedrichParticipantHello Bill,
this was very quick and it works perfectly! The first result can be seen in http://imagnry.com.
But now another issue emerged. How can the block order be changed from descending to ascending ?
As you can see in the website there will be a portfolio group for each year. Right now the latest block will be always shown on top. But I need it the other way around – the intro block is always on the top and the latest block at the bottom.thanks a lot for your efforts
P.Peter HedrichParticipantWow, that’s fantastic ! Looking forward to the update … 🙂
Have a great week, too
P. -
AuthorPosts