W4 Internal Link Shortcode

Details

Now you can easily embed your wordpress sites internal links (post,page,category,author) in post,page or category description pages. Just write the appropriate shortcode,and you are on. No need to update these links whenever you make any changes to the real link location.

Example:

The default category link of your site should look like something

http://example.com/category/uncategorized/

Now, if you change your category base to cats, like http://example.com/cats/uncategorized/ , you don’t have to update the shortcode. It will take the latest format to show the link.

Use shortcode “intlink” to put a link.

Arguments:

1. type = default ‘post’. (your link type:post/page/cat/author).
2. id = default ”. (this is the post/page/author/category id based on the type you have chosen).
3. text = default based on the type. Post/Page title for type ‘post’ or ‘page’, Category name for ‘cat’, author display name for ‘author’. (the text to show inside the link).
4. name = default ”. (Name of the link item object. Ex: “Uncategorized” for category Uncategorized, “Hello world” for the post Hello world).
5. slug = default ”. (Slug of the link item object. Ex: “hello-world” for the post Hello world).
6. class = default ‘w4ils_link’. (A HTML class for the link element “a”).

Here is some links by shortcode.


Bangladesh Trending
WordPress

Post your reply below