Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
In reply to: Empty topic title – all text is gone from body
fancy editor, it’s the “Add Topic” / “Reply to Topic” Editor at the bottom of every page.
In reply to: Get rid of "Private: " text in front of forum TitleExpanding my search to include all of WordPress resulted in this fine code I just plop in to my functions.php that’ll remove it:
function the_title_trim($title) { // Might aswell make use of this function to escape attributes $title = attribute_escape($title); // What to find in the title $findthese = array( '#Protected:#', // # is just the delimeter '#Private:#', '#Privat:#' ); // What to replace it with $replacewith = array( 'a', // What to replace protected with 'b' // What to replace private with ); // Items replace by array key $title = preg_replace($findthese, $replacewith, $title); return $title;}
add_filter(‘the_title’, ‘the_title_trim’);Credit: https://wordpress.org/support/topic/how-to-remove-private-from-private-pages?replies=24
In reply to: Get rid of "Private: " text in front of forum TitleHmm, not great but thanks for the info.
Viewing 3 replies - 1 through 3 (of 3 total)