Fire Truck
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Pagination not workingIf your home page is set to ‘Your latest posts`, use
get_query_var('paged')If your home page is set to ‘A static page’, use
get_query_var('page')😉
Forum: Fixing WordPress
In reply to: Pictures now with odd lines.Show us your site.
Forum: Fixing WordPress
In reply to: Modify html title element to include site 'section' name.How do I modify the html title element to include ‘notes’ rather than the default of just site plus post title?
if(is_home()){ single_post_title(); }with subpages, how do I include the name of the parent in the title?
if($post->post_parent){ echo get_post($post->post_parent)->post_title; }Forum: Fixing WordPress
In reply to: Add Message on Password Protected Page.What’s exactly the problem? Show me your code.
Forum: Fixing WordPress
In reply to: Add Message on Password Protected Page.Yes.
Forum: Fixing WordPress
In reply to: Add Message on Password Protected Page.This message is defined in the file
wp-includes/post-template, however you shouldn’t edit it there, but create a filter in the filefunctions.phpthat should look like this -> http://pastebin.com/7Q62kStb
The edits you’ll make to this form will appear on your site.Forum: Fixing WordPress
In reply to: set which category a user role can post toYou might want to read this thread -> http://wordpress.org/support/topic/limit-categories-by-owen-winkler?replies=16
Question concerning wordpress.com sites should be asked in this forum -> http://en.forums.wordpress.com/
Forum: Fixing WordPress
In reply to: remove tilde character from first item in menuYou can indeed use a filter to do the job, this may be simpler. Add this to functions.php
add_filter('wp_nav_menu','do_filter_wp_nav_menu'); function do_filter_wp_nav_menu($html) { $needle = '<span class="option-separator">~</span>'; $pos = strpos($html, $needle ); if ($pos !== false) { $html = substr_replace( $html, '', $pos, strlen($needle)); } return $html; }Forum: Fixing WordPress
In reply to: remove tilde character from first item in menuYou should extend Walker_Nav_Menu class.
Paste this -> http://pastebin.com/vS4E0N9K into your functions.php and then call this class from your template this way:$my_walker = new My_Walker_Nav_Menu(); $args = array( 'before' => '<span class="option-separator">~</span>', 'walker' => $my_walker ); wp_nav_menu($args);Forum: Fixing WordPress
In reply to: Displaying Previous | Next Posts (or Pages) with ExcerptUse this script as a base. http://pastebin.com/8dpbHmxC
Forum: Fixing WordPress
In reply to: importing database into new blogThat’s probably because the database you are importing the .sql in not empty. If you just installed wordpress and the database doesn’t contain anything except for default values, you can empty it and then import the .sql.
Forum: Fixing WordPress
In reply to: Changing post_meta based on other posts post_meta^^ Works for me. 🙂
Backup the wordpress database.Add the lines
echo '<pre>'; print_r($_POST); echo '<hr>'; print_r($post);to the end of my function
do_edit_post, changeis_awardedtoyes, press Update button and post the content that will appear on the screen in the Pastebin.Note: this will temporarily break the edit function. 😉
Forum: Fixing WordPress
In reply to: Link In Text Widget Changing Themselves?!!http://, nothttp:/
😉Forum: Fixing WordPress
In reply to: Changing post_meta based on other posts post_metaCreate a function that hooks into
edit_posthook, read the values form the$_POSTarray, ifis_awardedset toyesupdate values in the database. 🙂
http://pastebin.com/3g2xNMjk