I have created a custom posts and on an individual post pages the page title is “Blog”. I would like to delete this can you advise where this is please?
Hey!
Try adding this at the very end of your theme functions.php file:
add_filter('avf_title_args', 'hide_title_func', 10, 2);
function hide_title_func($args,$id)
{
if(is_singular('_POST_TYPE_SLUG_')){
$args['title'] = "";
$args['link'] = "";
$args['heading'] = 'span';
}
return $args;
}
Cheers!
Josue
Hi Josue
Thanks for this. I could be wrong but from the look of this code I may not have been to clear on what I am trying to achieve. Its actually the word “Blog” at the top NOT the individual blogs titles.
http://travel.hubspokes.com.au/wp-content/uploads/2014/07/9-07-2014-11-47-22-AM.jpg
Cheers Gavin
Hey Gavin!
Did you try the code? can you post a link to the website please?
Cheers!
Josue
I just did. I put it in the functions.php of child which I am using.
http://travel.hubspokes.com.au/coach_tours/9-day-irish-spirit-tour/
http://travel.hubspokes.com.au/blog/
Links to both the custom post type and the actual blog. Only wanted to do on custom post types but not a major problem if it is on both.
Can seem to see any change on either.
Hi,
Can you please create me an administrator account? post it here as a private reply.
Regards,
Josue
Done:
http://travel.hubspokes.com.au/coach_tours/9-day-irish-spirit-tour/
You needed to replace “_POST_TYPE_SLUG_” by “coach_tours”.
Cheers!
Josue
Thanks Josue Really appreciate your support and your promptness!
You are welcome, always glad to help :)
Regards,
Josue