Show post content in two different places without redirect

I ended going the CPT route, as I couldn’t figure out other way. Just added a bunch of logic to duplicate/modify/delete the normal posts when needed. <?php // function for the CPT function SU_kuuma_kysymys_type() { // creating (registering) the custom type register_post_type( ‘kuuma_kysymys’, /* (http://codex.wordpress.org/Function_Reference/register_post_type) */ // let’s now add all the options for this … Read more

Permalinks linking to similar named site

Have you updated the links in your database? Are they still pointing to your live site? Sorry, I will elaborate. If you download your database you will see that the url for your live site will appear several times. For example: INSERT INTO `wpfr_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES (1, ‘siteurl’, ‘http://www.yourwebsite.com’, ‘yes’), The quickest … Read more

Include language variable in url

In your example Change this: public function custom_permastruct() { add_permastruct(‘language’, ‘%lang%’, false); } to this: public function custom_permastruct() { add_rewrite_tag(‘%lang%’,'(lang)s’,’post_type=”); add_permastruct(“language’, ‘%lang%’, false); } Please note that this will only work on WordPress 3.4+ Other ways of doing it: You need to create a new permalink and after to set some rewrite rules. The function … Read more

Multiple Parent Category URLs

You shouldn’t need to do any of that. When you set up a category in the backend of a WordPress website, the archive is normally created/taken care of for you. So if you create a category called ‘Massive Dogs’ and you got to “/massive-dogs’ after you have created a post in that category (and the … Read more