cannyboy
Forum Replies Created
Viewing 8 replies - 1 through 8 (of 8 total)
-
………
(bump)
….
…bump..
Forum: Fixing WordPress
In reply to: Listing pages in a certain orderThanks. That spits out the menus, but not in the order required. I used a couple of echo statements to try and work out what is going on and the output is:
pregmatch else else Entries Groups & Guides Info & Misc
Here’s the code I used
$parent = $wp_query->post->ID; $titles_to_match = array("Info & Misc","Groups & Guides","Entries"); $titles_regex = '/' . implode('|',$titles_to_match) . '/'; $pagelist = wp_list_pages("title_li=&child_of=$parent&echo=0"); $pagearray = explode('<li ',$pagelist); $junk = array_shift($pagearray); // First entry is empty for ($i=0;$i<sizeof($pagearray);++$i) { if (preg_match($titles_regex,$pagearray[$i],$matches)) { echo "pregmatch "; $special[$matches[0]] = '<li ' . $pagearray[$i]; } else { echo "else "; $newarray[] = $pagearray[$i]; } } foreach($titles_to_match as $title) { $newlist .= $special[$title]; } $newlist .= '<li ' . implode('<li ',$newarray); echo $newlist;
Problem seems to be solved..
Likeanother user – I think I used a reserved word as a field name (in my case ‘Action’ )Forum: Plugins
In reply to: [Plugin: Contact Form 7] Message Body Missing[your-message] is just a placeholder. You have to replace it with [your-email] [your-message]… etc.
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Adding hyperlinks to the message issueAnyone with a solution?
Forum: Fixing WordPress
In reply to: [Plugin: Contact Form 7] Link in success messageWould also like to know of any solutions.
Forum: Plugins
In reply to: Contact Form 7 – forward success page or link in success messageIs there a working solution to this now?
takayukister’s solution doesn’t work for me (just shows html as text)
squarecandy’s solution appears to reference an earlier version of Contact Form 7, since there aren’t 143 lines in wp-contact-form-7.php
Viewing 8 replies - 1 through 8 (of 8 total)