iconem
Forum Replies Created
-
Forum: Plugins
In reply to: [Page scroll to id] Disable "Page Scroll to ID" animation from other pagesThanks 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,
Forum: Plugins
In reply to: [Page scroll to id] Disable "Page Scroll to ID" animation from other pagesHi,
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 !
Forum: Plugins
In reply to: [Posts in Page] Sort By two categoriesHi,
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 );
?>