Articles of permalinks

Load custom PHP on a custom URL via a plugin

I am looking into having a plugin developed that loads a PHP script (myscript.php) on a custom URL. It’s very important to achieve this functionality with a plugin. Example: example.com/myscript – loads myscript.php example.com/myscript/example – prints out “example”

how to edit a specific post slug using a php code?

I want a php code by which i can show a modified link to the post. when using <?php get_post_permalink(); ?> it shows e.g.: (www.mysite.com/post-name-one). what i need is something like (www.mysite.com/abstract/post-name-one). because adding this word to the link will activate a function to change the post template. I tried to use: <a href=”<?php the_permalink(); […]

How do I keep multiple domain for my wordpress site

I want category ID 1,2,3,4,5 to be DomainB.com category ID 6,7,8,9,10 DomainC.com and homepage to be DomainA.com I thought of using 302 redirect or edit htaccess, but what is the best way to achieve this with wordpress. I also thought of editing the function permalink, but it won’t solve the homepage, and category page issue.

cannot link a external url, present page url acting as parent url

please help some one cannot link a external link, my present page link is acting as parent link, if iam linking facebook.com , then my page url opens as www.mysite.com/facebook.com please solve it. all my external links as same, even no plugins can help me, cannot link an external link. all links are of same.. […]

Custom Post Type Archive template not being called

My question is similar to a number of posts on this site, but I haven’t found a solution to my specific issue yet. I’m trying to implement an archive for a custom post type, “ttwi_course”. I completed the following steps, which I’ve successfully performed on numerous other sites: I registered the CPT, code below I […]

What happens to the permalink that use %postname% if I change the post name

In my permalink i use only postname What will happen to the links if the post name changes? Will it still work ? Otherwise what is the best practice? With love

URL links consistent with menus?

I’d like to have a URL links consistent with menus on the page. For example: Menu1: Submenu1 item1 item2 Submenu2 item3 item4 Menu2: Submenu… etc.. The corresponding links shoud be: myweb.com/menu1/submenu1/item1 myweb.com/menu1/submenu1/item1 etc. However, the links are myweb.com/item1 myweb.com/item2 etc. How can I fix this?

Ignore postname in permalink

I want to set my permalink as: www.example.com/category/postid/postname But I want WordPress to ignore the post name at the end, because I may change it later. How can I do it with .htaccess, or is there another way?

Getting the permalink to the latest post from a category

What’s the best way to get the permalink to the latest post of a chosen category? I have a page that I want to have several links to the latest post from different specified categories. Simple question, but I’m not sure if it’s even possible 🙂 Thanks!

Custom Post Type with Configurable Sidebar via ACF

I am using a custom post type (CPT) trainings on one of my client’s sites. I’ve also added a CPT called sidebars, which can get linked into trainings or pages via the “relation” field type. To get an overview over all trainings, I’ve created a separate template “tpl-trainings.php” and added an “overview”-page, which in turn […]