Post Image Gallery After Content Function messes with other content

Move is_single() condition to be inside the function, and you have to return the original content if the condition isn’t satisfied. Your code will look like this: add_filter(‘the_content’, ‘add_content_after’); function add_content_after($content) { global $post; if ( is_single() ) { if ( $post->post_status == ‘publish’ ) { $attachments = get_posts( array( ‘post_type’ => ‘attachment’, ‘posts_per_page’ => … Read more

How can I pass form entry to another form on a new page

While this is not a WordPress specific problem it is not a non-WordPress problem either. It sounds like you need a little guidance on how forms pass data. If what you are really asking is how to get a plugin to pre-populate a form, you are best off asking the plugin’s developer. Assuming that you … Read more

WordPress doesn’t save or publish new posts

Finally found a solution to my problem. In my case I had set a 301 redirect for my front page (that is for “domain.com”) to another page I wanted to use as the front page. Apparently that caused a problem when Elementor tried accessing it’s content (although I’m not sure why it needs the content … Read more