Using the shortcode, the HTML form shows up just fine. However, it also has a “submit” button that won’t work. Every time I click it, I receive a “file-not-found” message.
The custome HTML form works fine outside of WordPress. I have copied the Form’s PHP file that processes the input to 1) the plugin’s file folder, 2) WP’s main directory 3) about 10 other places I thought it might be looking.
The only other solution I can come up with include
– including the PHP file within the HTML file, so it can call itself.
I still receive the “file not found” message. If anyone can help, I would greatly appreciate it.
The problem seems to be with WordPress as it will not work with any Template. Again, the html form and php files work fine outside of WordPress.
Thanks in advance.
]]>We have a very strange error whereby sometimes the HTML will display rendered in a post, or part of it.
This can happen with both images and embedded objects, such as YouTube images.
An example is the first line of the YouTube iFrame which has caught into this post:
https://www.studentnews.ie/dramatic-footage-captures-circus-elephant-escape-in-cork-shopping-center-5368
So far we haven’t figured out what the problem could be; can anybody offer an idea?
]]><?php
$content = $post->post_content;
$searchhtml = '~< [^>]* />~';
/*Run preg_match_all to grab all the html and save the results in $html*/
preg_match_all( $searchhtml, $content, $html );
// Check to see if we have at least 1 instance of html
$iNumberOfHTML = count($html[0]);
if ( $iNumberOfHTML > 0 ) {
add_post_meta($post-id, 'post-content', 'html', true);
}
?>
What I want is if there is HTML detected in the content of the post, to add the custom field key “post-content” and value “html”.
I’m not sure why but this just isn’t working when I try to get the key with <?php meta('post-content'); ?>
.
Any help would be greatly appreciated. Thanks!
]]>I wand to show little parts of code like css and xhtml in my post.
Now i use images for this see here https://reality-escape.net/blog/2007/12/26/how-to-make-a-image-navigation-2/
I have used this plugin (Preserve Code Formatting)
it works only i have this probleme.
When i insert the code between the <code></code>
tags
wordpress removes the close tag </code>
and ad tru the post alot of new <code> </code>
tags on different places.
I don’t understand wy wordpress made his own tags.
Thank you for your time
Danielle