Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter iconem

    (@iconem)

    Thanks for your answer. I don’t think the behavior I want is handled by this property. Let me delve a bit more int the details 😉

    If I am on the website iconem.com, I am on a one page website with a menu. The Home, Projects, Team, References and Contact menu entries correctly scroll to the correct location on that page with an animation when clicked. If I click on the Syrian Heritage however entry, I am redirected to another page. Now, if I am on this other page (or any other page than the iconem.com page), and click on one of the previous menu entries, I would like to be redirected to the correct location of iconem.com without any animation.

    Is this controlled b ythe option you describe ? Thanks again for your time,

    Thread Starter iconem

    (@iconem)

    Hi,
    Thanks for your quick reply. I’ve the location hash property enabled. If I am on the “Home page (the one-page associated with the menu hashes), then when clicking on a menu element, the page correctly scrolls towards the good div (for example when I am on site.com and click on site.com/#contact).

    What I would like is to disable this scrolling when I am in another page than the Home and click on a menu item. I would like to directly be at the correct location without any animation (for example I am on site.com/blog-post-1 and click on site.com/#contact).

    The best would be to have a parameter to fix the animation duration in two cases : when clicking on a menu item and being already in the same page or coming from another page.

    Thanks again !

    Thread Starter iconem

    (@iconem)

    Hi,

    What is needed is simply to allow passing PHP arrays in the orderby attribute like so the orderby WP_Query.

    Thanks again !

    <?php
    $args = array(
    ‘post_type’ => ‘words’,
    ‘meta_query’ => array(
    array(
    ‘key’ => ‘word_count’,
    ‘orderby’ => ‘meta_value_num’,
    ‘order’ => DESC
    ,
    ),
    array(
    ‘key’ => ‘title’,
    ‘orderby’ => ‘meta_value’,
    ‘order’ => DESC
    ),
    array(
    ‘key’ => ‘word_type’,
    ‘orderby’ => ‘meta_value’,
    ‘order’ => DESC
    ),
    ),
    );
    $query = new WP_Query( $args );
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)