Hello,
when i’m in the category view of the wpdownloader, my title of the page is empty.
i tried this:
if ( ! function_exists( 'get_theme_page_title' ) ) :
function get_theme_page_title() {
global $post;
$hide_title = esc_attr( get_post_meta( $post->ID, "hide_title", true ) );
//$ptitle = stripslashes( esc_attr( get_post_meta( $post->ID, "ptitle", true ) ) );
if ( empty($hide_title) ) :
if( !empty($ptitle)) : ?>
<h2 class="ptitle"><?php echo $ptitle; ?></h2><?php
$catname = get_category(get_query_var('cat'))->name;
elseif (!empty($catname)) : ?>
<h2 class="ptitle"><?php echo $catname; ?></h2><?php
else : ?>
<h2 class="ptitle"><?php the_title(); ?></h2><?php
endif;
endif;
}
endif;
But the title is still empty.
Can anybody help?
Thanks