• crystalinc

    (@crystalinc)


    I would love to delete the date on my posts I tried deleting some of the lines in the section in my theme functions I than got an error message where the date and time are to be so I tried to fix it and than it broke I had to uninstall and reinstall what should I change in this section to get the date and time to disrepair..
    This is dusk till dawn theme…

    //Prints HTML with meta information for the current post-date/time and author.
    function dusktodawn_posted_on() {
    	printf( __( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> <span class="sep"> by </span> <span class="author vcard"><a href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'dusktodawn' ),
    		esc_url( get_permalink() ),
    		esc_attr( get_the_time() ),
    		esc_attr( get_the_date( 'c' ) ),
    		esc_html( get_the_date() ),
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'dusktodawn' ), get_the_author() ) ),
    		esc_html( get_the_author() )
    	);

    [Please post code or markup snippets between backticks or use the code button.]

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Try:

    //Prints HTML with meta information for the current post-date/time and author.
    function dusktodawn_posted_on() {
    	printf( __( '<a href="%1$s" rel="bookmark"></a><span class="byline"> <span class="sep"> by </span> <span class="author vcard"><a href="%2$s" title="%3$s" rel="author">%7$s</a></span></span>', 'dusktodawn' ),
    		esc_url( get_permalink() ),
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'dusktodawn' ), get_the_author() ) ),
    		esc_html( get_the_author() )
    	);
    }
    Thread Starter crystalinc

    (@crystalinc)

    I tried that and this is the message appering above my posts…

    Warning: printf() [function.printf]: too few arguments in /home/kieldmd/public_html/wp-content/themes/dusk-to-dawn/functions.php on line 195

    [Please do not post in uppercase. It’s the electronic equivalent of shouting and is considered quite rude.Post de-capped]

    Thread Starter crystalinc

    (@crystalinc)

    I found it thanks it wasn’t the esc_url( it was just above it Thanks for your time…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘deleting date and time’ is closed to new replies.