Link to custom post type
-
I have custom post type call Design, list of all the design, when I click one of the posts, I want it back to custom post type page(design) how can I do that?
I can’t get a post id from that, and tried a couple different methods:code:
what I use$design_page_id = get_option('page_for_posts');
is not working.<?php $translate['all']='Show Design'; $post_prev = get_adjacent_post( $single_post_nav['in-same-term'], '', true ); $post_next = get_adjacent_post( $single_post_nav['in-same-term'], '', false ); $design_page_id = get_option('page_for_posts'); echo mfn_post_navigation_header( $post_prev, $post_next, $design_page_id,$translate ); ?>
`
Thank you so much!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Link to custom post type’ is closed to new replies.