=== Plugin Name === Plugin Name: W4 Internal Link Shortcode Contributors: sajib1223, Shazzad Hossain Khan Donate link: http://w4dev.com/ Tags: links, shortcode, post, page, category Requires at least: 2.9 Tested up to: 3.0.3 Stable tag: 1.0 == Description == Now you can easily embed your wordpress sites internal links (of 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/. A shortcode for displaying this link should be..
[intlink type="cat" slug="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: = * type = default 'post'. (your link type:post/page/cat/author). * id = default ''. (this is the post/page/author/category id based on the type you have chosen). * 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). * name = default ''. (Name of the link item object. Ex: "Uncategorized" for category Uncategorized, "Hello world" for the post Hello world). * slug = default ''. (Slug of the link item object. Ex: "hello-world" for the post Hello world). * class = default 'w4ils_link'. (A HTML class for the link element "a"). = Notes = * Remember,you have to write the shortcode properly. Script has a priority for finding a link from your shortcode. * Firstly, the script will try to find the link type. if you haven't entered any type in your shortcode, it will assume the link as post/page link. * Secondly, it will find your given attribute(id,name,slug) for the link. By priority, it will look for the "id" first. if id not found,then it will look for the "name". And last it will look for the slug.Slug is pretty eiser than name,as it contains all small letter and no space. If the is a name "I love Wordpress",the slug should be for this "i-love-wordpress",there is some exception although. * Lastly, it will fletch the link based on the matched attribute. = Please let us know if you are unable to use/manage this plugin or if you have some suggestions to improve this plugin. Contact W4 development = == Installation == 1. Upload plugin zip file to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress == Frequently Asked Questions == = Where i can use it = You can use it in post, page and in category description field. == Screenshots == == Changelog == = 1.0 = == Upgrade Notice == = 1.0 = == Usages == 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").