-
AuthorPosts
-
August 10, 2014 at 12:39 pm #302219
Hello Kriesi Team,
Could i adjust number of items in the grid layout at category and label pages?
In the main blog page the grid layout have 18 items, fixed in the editor page:
http://solucionestecnologicasparaempresas.com/blog/But in the category and label pages which have more than 10 items, shows only 10 items per page:
http://solucionestecnologicasparaempresas.com/categoria/gestion-de-contenidos/
http://solucionestecnologicasparaempresas.com/etiqueta/gestion-documental/Could i change number of items in the grid layout at category pages?
Could i change number of entry items in the grid layout at label pages?
Could i change number of portfolio items in the grid layout at label pages?Thanks in advanced, Raúl Ibáñez.
http://solucionestecnologicasparaempresas.com/August 11, 2014 at 3:25 pm #302647Hi Raul!
Please go to Settings > Reading > “Blog pages show at most” and set it to needed number
Regards,
YigitAugust 12, 2014 at 12:20 pm #303142Thanks Yigit,
I have set Settings > Reading > “Blog pages show at most” to 18.
Now blog main page and category pages shows the grid layout perfectly, in multiple of 3 items, 18 per page.
But label pages have entries and portfolio items, and i don’t know how to adjust to multiple of 3 items:
http://solucionestecnologicasparaempresas.com/etiqueta/gestion-documental/Is posible to fine label pages?
Thanks, Raúl.
August 13, 2014 at 4:33 am #303596Hi!
Unfortunately I don’t know of a way to do that. Because the page is actually already showing the correct query amount but its being split into the 2 different post types for a total of 18 items on the page.
With the way WordPress handles the query it checks for X number of items and then outputs them. So it could change the number of columns depending on how many tag items are in each type.
Cheers!
DevinAugust 14, 2014 at 10:50 am #304284Thanks Devin,
I am going to set “Blog pages show at most” 24 items.
1. Blog main page is fixed to 18 items by enfold theme.
2. Category pages show good because all of them have less than 24 items,
3. Label pages now do not have more than 24 items, so they are shown in only one page.
I think it could be a good solution. But can i change the number of items of the grid layout at enfold theme?
Regards, Raúl.
- This reply was modified 10 years, 4 months ago by ribanezg.
August 15, 2014 at 5:36 am #304719Hey Raúl!
One solution could be to have different tags (gestión-documental-posts – gestión-documental-portfolio) for Posts and Portfolio items.
Also, you could try the following, open tag.php and look for line 71:
'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=> $key )
Change it to:
'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=> $key, 'posts_per_page' => 12)
Replace 12 by the maximum number of posts you want to show per post type on the tag page.
Regards,
Josue- This reply was modified 10 years, 4 months ago by Josue.
August 15, 2014 at 3:25 pm #304936Josue,
I would like to show both portfolio and blog entries items by clicking in a tag.
I think i could fix blog entries in a multiple of three, in the tab page.
If i change tab page code with your recomendation code, then blog entries are fixed to 12 (for example), but next blog entries are not shown in other pages. The pagination does not appear.
Regards, Raúl.
August 25, 2014 at 5:29 pm #308903Its not really a super flexible content area unless you are willing to get your hands dirty with custom coding the elements more in depth. If its a must-have change then I would recommend looking into a freelance developer from somewhere like Envato Studio or Codeable. In depth customization is out of the scope of what support can cover.
August 25, 2014 at 10:43 pm #308997Thanks anyway for your help.
-
AuthorPosts
- The topic ‘Adjusting number of items in grid layout at category and label blog pages’ is closed to new replies.