Entry title & info missing from my posts
-
Hello! I’m building a site using the Modern Portfolio theme for Gensesis and I had disabled the post and page titles for certain pages. However, I DO want the post title & the info (author, date, etc) to appear on the post pages themselves but it seems like those have now gone missing. Here is the code I have in my functions.php file:
//* Remove the entry title (requires HTML5 theme support) add_action( 'get_header', 'remove_titles_from_pages' ); function remove_titles_from_pages() { if ( is_page(array(contact, about, portfolio, services, contact-test) ) ) { remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); } } //* Remove the entry title from portfolio posts(requires HTML5 theme support) add_action( 'get_header', 'remove_titles_single_posts' ); function remove_titles_single_posts() { if ( is_single(array(watchfire, pyramid, general, first, msi, meeting-maker, keurig, vx, spaceclaim, remax, champ, vistagy, gemini, nelco, hanover, swearingen) ) ) { remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); } } //* Customize the entry meta add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { if ( !is_page(news) ) { $post_info = '[post_date] by [post_author_posts_link] [post_comments]'; return $post_info; } }
Is something here not allowing my post titles & info to show up? Here is a sample post page where you can see the missing info:
https://www.haleymistlerdesign.com/uncategorized/test-post-2/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Entry title & info missing from my posts’ is closed to new replies.