Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello, im a Beginner. So i have problems to deaktivate the metainformation on my posts.

    Wit your example to delete the pritf comamnd the site blocks completly.

    Thanks in advance for your support and great work with this theme.

    Hier the block: what i have to do now? (Step by Step plese :-))

    [ Moderator note: please wrap code in backticks or use the code button. ]

    }
    
    function dinky_entry_shortmeta() {
    	global $post;
    	$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
    		esc_url( get_permalink() ),
    		esc_attr( function_exists('jdate') ? jdate(get_option('date_format'), strtotime($post->post_date)) : get_the_time() ),
    		esc_attr( get_the_date('c') ),
    		esc_html( function_exists('jdate') ? jdate(get_option('date_format'), strtotime($post->post_date)) : get_the_date() )
    	);
    
    	$author = sprintf( '<span class="author vcard"><a href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'dinky' ), get_the_author() ) ),
    		get_the_author()
    	);
    
    	$utility_text = __( 'Posted on %3$s<span class="by-author"> by %4$s</span>.', 'dinky' );
    
    	printf(
    		$utility_text,
    		'',
    		'',
    		$date,
    		$author
    	);
    }
Viewing 1 replies (of 1 total)