Custom post type removing /page/2/ from URL when trying to access it

Are you making changes to the query in the template at all? If you modify the main query you often have to include “Paged” parameter, as explained here: https://codex.wordpress.org/Pagination If WP_Query is altering the main loop and the “paged” parameter is not set you’ll need to add it with get_query_var(). This is so WordPress knows … Read more

Generate random number 1-10 upon registration without repeat

All right, I figured it out. But if someone wants to suggest something better, please feel free and I will mark it correct. // array of previously-assigned numbers (get this by looping through the registered users -not shown) $numbers_already_taken = array(3,8,1); // get all the numbers between 1-10 $numbers = range(1, 10); // shuffle the … Read more