19dozen
Forum Replies Created
-
Forum: Plugins
In reply to: [Rich Text Tags] [Plugin: Rich Text Tags] No line breaks in version 1.4Thanks for the message 🙂
I stuck that code in my functions.php file but it didn’t seem to work. Any thoughts?? I’m quite open to the possibility that I put it in the wrong place.
Forum: Plugins
In reply to: [Rich Text Tags] [Plugin: Rich Text Tags] No line breaks in version 1.4I’ve not had a chance to look at this again since posting. Yes Chris, you’re correct, they initially get saved but no P tags are being saved with them. The problem doesn’t seem to occur when you save the database actually. I typed in the wysiwyg box, two paragraphs of text with one of the words emboldened. When I then toggles the wysiwyg editor off no P tags were present in the text box. The tags to emboldening the word were there, however, making me think that this is some sort of problem with the way TinyMCE is set up.
I don’t think that filtering the content is really the way to go actually. The markup should really appear when TinyMCE is turned off. is anyone capable of troubble-shooting this at all??
19dozen
Forum: Hacks
In reply to: hook and rewriteI am having a similar problem in WordPress 3 with a multisite install. You seem to have got further than I have though.
I think your problem is in the line:
$new_rules = array('list/(.+?)/?$' => 'index.php?list=$matches[1]');have you tried changing it to the following?
$new_rules = array('list/(.+?)/?$' => 'index.php?pagename=list&list=$matches[1]');I have implimented your code on my site and it is working. It takes you through to a profile page and allows me to display users profiles (we’ve also build an advanced search in to it). Code is below if it helps 🙂
All the best,
Steve
function nd_add_rewrite_rules( $wp_rewrite ) { $new_rules = array('profile-page/(.+?)/?$' => 'index.php?pagename=profile-page&id=$matches[1]'); $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } function nd_query_vars($public_query_vars) { $public_query_vars[] = "id"; return $public_query_vars; } function nd_flushRules(){ global $wp_rewrite; $wp_rewrite->flush_rules(); } add_action('generate_rewrite_rules', 'nd_add_rewrite_rules'); add_filter('query_vars', 'nd_query_vars'); add_filter('init','nd_flushRules');