How to process shortcodes in XML-RPC

Explanation of the behavior A shortcode is meant to be processed during runtime (when rendering & displaying a post on the public facing view). It is absolutely not meant to be a pre-processor during saving the post. The receiver simply doesn’t have your parser (which is the function processing the shortcode) and therefore will get … Read more

Import External XML

Fetching the data To fetch your posts, you’d utilize the HTTP_API, fetch_feed() or SimplePie. This completely depends on how and from where you’re going to get the XML. Here’s one answer about the HTTP API](https://wordpress.stackexchange.com/a/73659/385) and another one. Storing & maintaining the data The main problem will be that you need a storage location. Therefore … Read more

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.

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