Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter yasiph

    (@yasiph)

    Excellent! Managed to change the Nicename to first name(needed this function in multi-lingual posts) Thanks @trepmal

    Thread Starter yasiph

    (@yasiph)

    @trepmal How would that work?
    Changed this

    function twentyten_posted_on() {
    	printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    		'meta-prep meta-prep-author',
    		sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
    			get_permalink(),
    			esc_attr( get_the_time() ),
    			get_the_date()
    		),
    		sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    			get_author_posts_url( get_the_author_meta( 'ID' ) ),
    			sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
    			get_the_author()
    		)
    	);
    }

    to

    function twentyten_posted_on() {
    	printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    		'meta-prep meta-prep-author',
    		sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
    			get_permalink(),
    			esc_attr( get_the_time() ),
    			get_the_date()
    		),
    		sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    			get_author_posts_url( get_the_author_meta( 'first_name' , 'ID' ) ),
    			sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
    			get_the_author()
    		)
    	);
    }

    And author post url is wrong. Changes …?author=1 to …?author=0

    couchmouse’s solution will never work if you’ve already activated and set-up because these options in stray_quotes.php is alread added to the wp_options table in database.

    In Settings > Stray Random Quotes’s Options page;

    Empty the ‘Widget Title and Sidebar Element Title’ (1st textbox)
    On the 2nd textbox, add your sidebar styles <div align=”right”> followed by ‘Widget Title and Sidebar Element Title’ with its style

    eg: <div align=”right”><h4>Random Quotes – ????????????</h4>

    also don’t forget to close the div tag by adding an extra div closing tag to ‘Author, Quote and Source'(4th textbox) for “Formatting elements after this group.”

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