ivanJ
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Archives not showing images with conditional category
Started by: ivanJ in: Toolset Professional Support |
2 | 2 | 6 years, 3 months ago | ||
Archives not showing proper order
Started by: ivanJ
in: Toolset Professional Support
Problem: The issue here is that the user wanted to order their archive page. Solution: When creating a custom archive with views you have the option to do the order of the posts being displayed under the order settings for the archive. If this does not work then you can manually use a hook to do the archive ordering. Example add_action( 'pre_get_posts', 'my_change_sort_order'); function my_change_sort_order($query){ if (($query->is_main_query()) && (is_tax('product_cat'))){ //If you wanted it for the archive of a custom post type use: is_post_type_archive( $post_type ) //Set the order ASC or DESC $query->set( 'order', 'DESC' ); //Set the orderby $query->set( 'orderby', 'title' ); } }; |
2 | 12 | 6 years, 4 months ago | ||
Implement the rel=
Started by: ivanJ
in: Toolset Professional Support
Problem How to implement the rel="prev"/rel="next" attributes into pagination links? Solution: |
2 | 2 | 6 years, 10 months ago |