Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
cobelfret
tagDiv Member

Hi! Ah that’s a pity, that’s excactly what I need, too.

Might you provide a child theme code snippet – to filter mega menu posts by alphabetic order?!

This functionality is available for mostof the other blocks – so I hope it will come for mega menu in a future update soon ;). Thanks!

cobelfret
tagDiv Member

Hi,

Thanks for all!

Things can be simple, I just found the solution: In TagDiv Composer Preview where you can shift and arrange elements, the element field gets ‘greyed’ when hovering. If you exit the Composer, all is displayed as expected again; the problem seems to be gone.

(I am getting old^^… my fault!)

cobelfret
tagDiv Member

The snippets mentioned above only work if “category global theme panel settings” are set to “normal pagination”.

Are you able to provide a snippet that also works with pagination set to ‘infinite loading’ or ‘infinite loading + load more’?!

cobelfret
tagDiv Member

Hi Lucian,

That is exactly what I need – Unfortunately both screencast links (added in blockquote) are not able to be displayed anymore. Is it possible for you to update them?! That would be a great help. Thanks in advance!

Hi,

Add this function into the
functions.php
file, like this: http://screencast.com/t/42g35dlHA
This will allow you to modify the sort order of post on category page:

function foo_modify_query_order( $query ) { if ( $query->is_category() && $query->is_main_query() ) { $query->set( ‘orderby’, ‘title’ ); $query->set( ‘order’, ‘DESC’ ); } } add_action( ‘pre_get_posts’, ‘foo_modify_query_order’ );

Change the order as you like.

For the Mega menu you have to add this line of code
$atts[‘sort’] = ‘alphabetical_order’;
, like this:
http://screencast.com/t/0OmLDPNkD9U
Change the sort order as you like, using the values set for sort here: http://screencast.com/t/Gv2I6uUs

Thanks

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