hi, im trying to figure out how to make the paging work in single-customtypename.php
Im using this code, it works when i use it on page templates but when it is in single-videos.php doesnt work.
BTW, my php level is medium-low.
i successfully get the related custom type based on the category of the current post. However when i go to /page/2/ i get 404 error. I have refresh my permalinks several times, that doesnt seem to be the problem
global $paged; $paged = get_query_var('paged')? get_query_var('paged') : 1 ; $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query(array( 'post_type' => 'videos', 'posts_per_page'=> '4', 'paged' => $paged, 'categoriesvideos' => $term->name, ));
How do you get the paging to work for custom types on single-videos.php template?
I searched the forums but i cant find a solution for this specific problem. Specially since i can make it work on other templates.
Thanks in advance for any help