How can I export and then import posts with featured images?

You can consult this answer, but the instructions are a bit unclear, so I’ll clarify them myself here. On the old blog, export the posts using the standard WordPress import/export functionality. If you’re unfamiliar with that, see this link for more information: https://codex.wordpress.org/Importing_Content On the new blog, use the WP Importer to import the XML … Read more

TCPDF get_post_meta outside the loop

I’ve got it fixed: I needed to add the wp-load file that contains all the WP-functions include(‘../../../../../wp-load.php’); global $post; $id = $_GET[‘id’]; $content_post = get_post($id); $content = $content_post->post_content; $content = apply_filters(‘the_content’, $content); $content = str_replace(‘]]>’, ‘]]>’, $content); Now the content loads in the PDF

XML export posts from one single day

Enhance the native XML export – with a single day selection Here’s one way to modify the native export with a select box, with all available days: Here we assume that there are not “huge” number of days to select from 😉 Otherwise we could use a different kind of user interface. Step #1 First … Read more

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