The single-listing.php in your theme is not removing the post_info action. You’ll see the remove_action used in the plugin’s /includes/views/single-listing.php file.
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
So is it conflicting because the theme and the plugin both have it?
No. Only one template can be used at a time. If it exists in the theme folder, that is what is used. The single-listing.php in your theme is missing the action to remove the post info. Add the piece of code posted earlier to your custom single-listing.php in the theme.
Note: That will only work if using the default Genesis function for post_info. If your theme is doing something else to add the post_info action, you’ll need to find out what the hook is and remove it.
This is what is already in my single-listing.php file.
remove_action( ‘genesis_entry_header’, ‘timothy_do_postdate’, 5 );
remove_action( ‘genesis_entry_header’, ‘genesis_post_info’, 12 );
remove_action( ‘genesis_after_entry’, ‘genesis_do_author_box_single’, 8 );
remove_action( ‘genesis_entry_footer’, ‘genesis_post_meta’ );
remove_action( ‘genesis_comment_form’, ‘genesis_do_comment_form’ );
remove_action( ‘genesis_entry_footer’, ‘timothy_related_posts’, 20 );
So, does this mean that the child is doing something else as mentioned in your “Note”?
Thanks!
Yes. Because it looks like you have this timothy_do_postdate
function that is removing the post date from genesis_entry_header
but is apparently adding it back somewhere.
Do you have any add_action statements in that file? Or anything in the functions.php file that calls the timothy_do_postdate function ?
Meh!
It’s happening on other pages
http://cassie2.thinkmedia.ca/listings/
***********************************************
Single-Listing.PHP
***********************************************
<?php
remove_action( ‘genesis_entry_header’, ‘timothy_do_postdate’, 5 );
remove_action( ‘genesis_entry_header’, ‘genesis_post_info’, 12 );
remove_action( ‘genesis_after_entry’, ‘genesis_do_author_box_single’, 8 );
remove_action( ‘genesis_entry_footer’, ‘genesis_post_meta’ );
remove_action( ‘genesis_comment_form’, ‘genesis_do_comment_form’ );
remove_action( ‘genesis_entry_footer’, ‘timothy_related_posts’, 20 );
add_action( ‘genesis_after_entry’, ‘aeprofiles_show_connected_agent’ );
function aeprofiles_show_connected_agent() {
if (function_exists(‘_p2p_init’) && function_exists(‘agentpress_listings_init’)) {
echo’
<div class=”connected-agent-listings”>’;
aeprofiles_connected_agents_markup();
echo ‘</div>’;
}
}
/* Replace Sidebar */
remove_action( ‘get_header’, ‘timothy_child_sidebars_init’, 15 );
add_action( ‘genesis_sidebar’, ‘timothy_tax_do_sidebar’ );
function timothy_tax_do_sidebar() {
genesis_widget_area( ‘listing-sidebar’ );
}
genesis();
Functions.PHP has this in it.
**************************************
add_action( ‘genesis_entry_header’, ‘timothy_do_postdate’, 5);
function timothy_do_postdate( $post_info ) {
if( ! is_page() ) {
$my_date = the_date( ‘<b>j</b> M’, ‘<span class=”date”>’, ‘</span>’, FALSE );
printf( ‘<div class=”post-date”>’ . $my_date . ‘ </div>’ );
}
}
My mistake. I was mistakenly referring to single-listing.php when I meant single-aeprofiles.php
Since you have that custom function to add the post date in your theme, you’ll need to create a custom version of the single-ae-profiles.php in your child theme and remove that action, the same way it’s done on the single-listing.php in your child theme.
Copy the contents of /includes/views/single-aeprofiles.php to a file of the same name in your child theme root folder. Then add that remove action to remove the post date.
remove_action( 'genesis_entry_header', 'timothy_do_postdate', 5 );