Get Post ID as a separate RSS feed item

How did I workaround this? Step1: From my WordPress Permalink Settings, I selected Custom Structure and added /%post_id%/ This means my results will be in this format: <myurl>/<postID> Step2: To make it easier for me instead of writing a regex query I used a a Split command like this: var postlink = entry.link; var id … Read more

Retrieve Plugin Settings and insert into XML string

You don’t need the echo when you are concatenating strings. Just remove it. $xmlInputData=”<?xml version=”1.0″ encoding=”utf-8″ ?><data><settings><origin=””. $my_options[‘origin’] .'” username=”‘. $my_options[‘user’] . ‘” password=”‘. $my_options[‘password’] . ‘” /></settings><enquiries><lead productName=\”Appointment Booking”><customer><name>’. $_REQUEST[‘first-name’].’ ‘. $_REQUEST[‘last-name’].'</name><email>’. $_REQUEST[’email’].'</email><postcode>’. $_REQUEST[‘postal’].'</postcode><houseNumber></houseNumber><address></address><city></city><region></region><tel>’. $_REQUEST[‘phone-number’].'</tel><mobile></mobile><notes></notes></customer></lead></enquiries></data>’;

WordPress importer / problem with images

I suggest importing xml file clicking don’t import images and attachments. Then simply copying uploads folder from old site to new site. This is how I do and it always works without problems for even bigger websites.

RSS/Atom feeds invalid, “Mismatched tag” errors

Upon closer examination of the output, all of the elements that did not have explicit closing tags were missing the self-closing notation i.e. <content … />; For some reason the functions.php file had these functions to “clean up” the output for HTML5: /********************************************** REMOVE SELF-CLOSING TAGS && USER-HARDCODED TAGS ***********************************************/ if ( !is_admin() && ( … Read more

Moving WordPress to a different directory – update XML Post File?

I would not recommend changing the XML file. When you move the WordPress installation to your root directory, you want to change the WordPress URL and Site URL options in your Admin > Settings. See official WordPress Codex page about Moving WordPress for more details. You can also manually change “siteurl” and “home” in the … Read more