Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14611 reviews 1734 hosting providers

Questions & Answers

Linking WordPress Page of custom post types to posts

Aug 12, 2013 by SunFun
Hi there
I have a custom post types  WordPress page and the posts are displayed on the page but posts are not linked to the post’s permalinks
This is the code I am using but is not working
while ( $wp_query->have_post() ) : $wp_query->my_post();
        echo '<div id="my-table">';
                echo '<h2>';
                echo '</h2>';
                echo '<div class="my-entry-content">';
                echo '</div>';
        echo '</div>';
can anyone please advice?
Many Thanks

1 Answer

0 votes
Aug 12, 2013 by WebGuru
Try replacing the code
echo '<a href="' . get_permalink( $post->ID ) . '" rel="yourbookmark" title=