Creating a WordPress addon for ContactForm7 submission (.XML file export)

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

WordPress post insertion from PHP file

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

Wodpress XML Import hooks

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

Import Instagram post as WordPress post

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)