I am French. Sorry if i make mistakes. I have two problems.

The first, I have a page that shows all paying activities sort by date. The 'posts_per_page' does not work When I put 10, it shows 8 articles.

enter image description here

Second problem, I have two templates, one that shows the sports activities, and another that shows the cultural activities. Sorting works on the cultural page, but not on the sports page. Yet it's the same code, only the name of the loop changes.

enter image description here enter image description here

Anyone know where my mistake comes from?

  • var_dump($upcoming) after the query is run to verify that all query vars are set correctly and generated SQL looks correct. – Milo Feb 24 at 18:35
  • Hi milo, looks correct I don't understand – L.to Feb 25 at 7:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.