yasiph
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display first name in specific posts which contain a custom fieldExcellent! Managed to change the Nicename to first name(needed this function in multi-lingual posts) Thanks @trepmal
Forum: Fixing WordPress
In reply to: Display first name in specific posts which contain a custom field@trepmal How would that work?
Changed thisfunction 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
Forum: Plugins
In reply to: Stray-Quotes, how do I align the text to the leftcouchmouse’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 styleeg: <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.”