(Plugin and this post last updated: 10/20/2009 – Latest Plugin Version: 1.1.1 – see changelog at bottom of post)
I have been wanting to do more wordpress plugin development, but it has a somewhat steep learning curve. So I'm testing the waters a bit here. I've done some testing with the plugin, but feedback is appreciated. For now, if you have problems with the plugin, leave a comment here. PLEASE include contact information (fill out the email field with a valid email address!!), a URL where you have the plugin installed, any errors you're getting, etc. The more information you give me, the more likely I will able to fix the problem.
Plugin Description
This plugin will allow you to specify certain pages to not be linked when wp_list_pages() is used in your theme. You might want to do this if you want a header for a series of subpages, but don't specifically want that header to be a real "page" or link.
For example – you have a series of pages like this:
As of version 1.1 of this plugin there are two ways you can go about doing this. You can either remove the link entirely. As in no <a> tag at all like this:
- About Our Company
- Our Products
- etc etc etc
OR you can remove the link to the actual page and sawp it out for a blank link to "#".
Usage
To use the plugin, download the zip, and unzip the file. Install it by putting the scripty-delinkpage.php in your wp-content/plugins/ directory. Activate it through the WordPress admin. Then, on pages you do not want to have a link, add a custom field with a key of "delink" and a value of "true" when you want to remove the link completely, or a value of "href" when you want the href value to be "#".
Download
You can download this plugin from wordpress.org plugin directory here: Delink Pages
Changelog
Version 1.1.1
Minor bug fix to preg_replace
Version 1.1
Added option for delink to have a value of "href" when you want don't want the link to be removed entirely but be linked to "#"
Version 1.0
Initial release
Related posts:
- Conditionally change path to HTTPS One of my clients had set it up so that...
- Search from WordPress Admin (Post Listing) Redirecting to Home Page This is possibly the most bizarre thing I've ever seen....
Related posts brought to you by Yet Another Related Posts Plugin.
scriptygoddess
