php - get next/prev only parent posts -


how should parent posts of custom post type projects prev/next posts (good if possible make recursively)

for example have 3 parent posts , childs

post 1      child 1     child 2 post 2     child 3     child 4     child 5 post 3 

and want 3 (maybe more) posts turning recursively

ps. have current post id, if helps


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -