Peter Hedrich

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
URL to the page in question:
  • Author
    Posts
  • in reply to: more than 20 blocks #32229
    Peter Hedrich
    Participant

    Wow, this was a quick response.

    Yup, adding the code to Custom CSS did the trick.

    Tnx a lot
    Peter

    in reply to: Ordering of home blocks #30075
    Peter Hedrich
    Participant

    Hi 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.

    in reply to: Ordering of home blocks #30074
    Peter Hedrich
    Participant

    Unfortunately 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 ?

    in reply to: Ordering of home blocks #30071
    Peter Hedrich
    Participant

    Hi 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
    Peter

    in reply to: Home page with a portfolio group #29419
    Peter Hedrich
    Participant

    The 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.

    in reply to: Home page with a portfolio group #29417
    Peter Hedrich
    Participant
    This reply has been marked as private.
    in reply to: Home page with a portfolio group #29415
    Peter Hedrich
    Participant

    Working 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

    in reply to: Home page with a portfolio group #29411
    Peter Hedrich
    Participant

    Hello 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.

    in reply to: Home page with a portfolio group #29397
    Peter Hedrich
    Participant

    Wow, that’s fantastic ! Looking forward to the update … 🙂

    Have a great week, too
    P.

Viewing 9 posts - 1 through 9 (of 9 total)