New answers tagged

0

The Code from ialocin works pretty well, but there is a mistake in the last part. It is supposed to be like this: Part 1: <form method="POST" action=""> <div> <?php $args = array( // hierarchical is needed to define depth 'hierarchical' => 1, // regions are the top ...


2

No. WordPress is written in PHP which is not Java. Maybe you can configure your webserver in a way to proxy a certain URL to be handled by some Java Server, but this is definitely not a WordPress issue and would be off topic here. You can try with sister sites like http://serverfault.com/ though.


0

Use the checked function. https://codex.wordpress.org/Function_Reference/checked The HTML you want to render should look like this: <input ... value="hide" checked="checked" />Hide from these locations.</br> <input ... value="show" />Only show to these locations.</br> What you're getting instead is probably somthing like this: ...


2

In theory yes, but it will be a very bad thing to do. For that you will need to have the secret used to generate the nonce at site A in site B which means tht if site B is compromised site A might be as well (there is also some time synchronization that needs to be done between the site, but that the lesser worry). There are two ways to properly go about it ...


0

paste this in your theme's functions.php: add_action( 'comment_form_before', 'my_comment_form_before' ); function my_comment_form_before() { ob_start(); } add_action( 'comment_form_after', 'my_comment_form_after' ); function my_comment_form_after() { $html = ob_get_clean(); $html = preg_replace( '/wp-comments-post.php"/', ...


0

Just to chime in, we use a plugin called ProfilePress (http://wordpress.org/plugins/ppress/) and couldn't be happier with it. It's actually a shortcode based WordPress form builder for creating custom login, registration and password reset forms at the front-end of your site.


0

Your code looks okay to me. Instead check whether email working in other part of the website or not!! Use Postman SMTP Mailer/Email Log plugin to configure / test / debug your mail system.


0

You can check: wp_category_checklist You can define a custom walker and change the check-boxes to drop-down with multiple select. wp_category_checklist output an unordered list of checkbox <input> elements labeled with category names.


0

Your form does not contain an ID. You need to replace name="form1" with id="form1". This is because your javascript says, onclick="document.getElementById("form1").submit();" which returns False, because there is no form with the ID "form1".


1

I know that this is an old question... but! there is a nice view count which means that people still need this. Maybe it would also help you close this question ;) Here is an ajax version The page itself the JS code The PHP Ajax receiver and publishing code. Inside your Page Template - this is an example - customize to your theme structure <div ...



Top 50 recent answers are included