maavangent
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Problem, cf7 is not sending antyhingOkay thanks. I haven’t tried a complete reinstall. In the end I programmed a simple plugin myself ??
Forum: Plugins
In reply to: [Contact Form 7] Form not working, only when viewing as draftWill do.
What kind of server are you running? And do you use pretty permalinks?
Forum: Plugins
In reply to: [Contact Form 7] Form not working, only when viewing as draftJust checked the form with the standard Twenty Fourteen theme but still the same problem.
Seems to be something with the server. Maybe a setting, maybe just because it’s Windows.
If anyone has an idea I’m all ears ??
For now I’ll just program it myself.
Forum: Plugins
In reply to: [Contact Form 7] Problem, cf7 is not sending antyhingEven a reinstall didn’t fix it.
Did you manage to find a fix already? You’re the first one I found that posted about this problem so it seems to be quite a rare one.
What kind of server are you on? The site I’m working with is running on a Windows server which seems to have caused more weird problems. Maybe this is one of them..
Forum: Plugins
In reply to: [Contact Form 7] Problem, cf7 is not sending antyhingDidn’t fix. Will now reinstall Contact Form 7..
Forum: Plugins
In reply to: [Contact Form 7] Problem, cf7 is not sending antyhing@guilec
Same problem here. The form is working fine when viewing the post in Draft mode. But when it’s published no data seems to being submitted.Have also disabled all scripts and plugins (except Contact Form 7) but the problem still exists. Still have to try out a different theme. Will post back when I have more info on this.
Forum: Hacks
In reply to: Help with ACTIVE state list CATEGORIES and POST TITLESGot it working!
Thanks to knottulf.
Here is the working code:
<div id="auto-menu"> <?php foreach( get_categories('hide_empty=0&include=16') as $cat ) : if( !$cat->parent ) { echo '<ul><span id="auto-menu-hide"><li>' . $cat->name . '</li></span><div>'; process_cat_tree( $cat->term_id ); } endforeach; wp_reset_query(); //to reset all trouble done to the original query // function process_cat_tree( $cat) { $args = array('category__in' => array( $cat ), 'numberposts' => -1); $cat_posts = get_posts( $args ); global $post; if( $cat_posts ) : foreach( $cat_posts as $menuPost ) : echo '<li'; if ( $menuPost->ID == $post->ID ) { echo ' class="active"'; } echo '>'; echo '<a href="' . get_permalink( $menuPost->ID ) . '">' . $menuPost->post_title . '</a>'; echo '</li>'; endforeach; endif; $next = get_categories('hide_empty=0&&parent=' . $cat); if( $next ) : foreach( $next as $cat ) : echo '<ul><span id="' . $cat->slug . '-header"><li><h2><a href="https://url/site/' . $cat->slug . '">' . $cat->name . '</a></h2></li></span><div id="' . $cat->slug . '-box" class="box-closed">'; process_cat_tree( $cat->term_id ); endforeach; endif; echo '</div></ul>'; } ?> </div>