Archivist - Custom Archive Templates
[resolved] error on number of post display (view infinity) + solution (1 post)

  1. yukiko-kawa
    Posted 3 years ago #

    I need view only 15 post in a page, but i have eg. 50 post in category.
    then for view only 15 post I need pot this code: posts_per_archive_page=15

    then what is the error?
    the error is in this code:

    [archivist template="ultimi_video" category="mypostcategory" query="post_type=episodi&post_status=publish&orderby=date&order=DESC&posts_per_archive_page=15"]

    whit this code, I don't see only 15 post, but 50! (infinity post).


    SOLUTION: the error is on the use of this codecategory="mypostcategory" the category is need impost in "query" code with number and not out the query line.

    eg: (mypostcategory -> 38 )

    [archivist template="ultimi_video"  query="cat=38&post_type=episodi&post_status=publish&orderby=date&order=DESC&posts_per_archive_page=15]

    with this code the problem was resolved.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Archivist - Custom Archive Templates
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.