stop duplicate post
stop duplicate post
stop duplicate post
How to import several big Import XMLs?
The file is not created, because the function my_generate_xml exists, but is never called. All that code looks correct. The only problem is that you have to call the function that generates the XML file… add_action(‘wpcf7_before_send_mail’, ‘my_get_form_values’); function my_get_form_values($contact_form) { // get info about the form and current submission instance $formTitle = $contact_form->title(); $submission = … Read more
The PHP way If you want to use PHP, you can use wp_insert_post to insert posts programatically. Basically you want to provide an array of post information (title, content, date…). You can read more about it here: https://developer.wordpress.org/reference/functions/wp_insert_post/ But the problem is you should not run that function to import all 100 posts. I used … Read more
You can use an IF statement like this to import a blank value in the case that the real value is “0,00”: [IF({saleprice[1][.=”0,00″]})][ELSE]. {saleprice[1]}[ENDIF] Just be sure to change “saleprice” to the correct element name from your file.
I think your syntax is wrong. It should be [get_workhours({ID})]. Also press “Save Functions” button before previewing.
This is slightly complicated. I could think of 3 ways to do this: Use someone else’s importer plugin. Importing stuff into WP using complicated criteria is a solved problem. However, I’ve never met an importer plugin that I liked which was free. Most of the projects I work on have less cash and more developer … Read more
Install the Instagram feed plugin Set up the plugin, go to plugin list, then under instagram feed press settings and set it up. To customize it, use customize bar Go to display feed bar, and copy then [instagram feed] code go on wordpress editor, press add block and search for shortcode Paste the copied code … Read more
Found my solution after a little more digging. The problem lies in wordpress-importer Found this from jan 30 on github: https://github.com/WordPress/wordpress-importer/issues/47?_pjax=%23js-repo-pjax-container Then later the solution here: https://www.playnicetogether.com/2015/11/07/wordpress-importer-plugin-content-length-problem-solved/ “the WordPress Importer plugin is not compatible with remote servers that use HTTP compression.” For WordPress v4.6 and above, please use the following: add_filter( ‘http_request_args’, function( $r, $url … Read more
It can be a problem with a too small value of max_execution_time. If your sitemap is too large, there is no enough time to generate it fully. Thus the document breaks in the middle. You can add ini_set(‘max_execution_time’, 10); in wp-config.php or add max_execution_time = 1 in php.ini Also, problem can be with extrace space … Read more