Conditional links allows shortcodes to be created which will automatically link when a page or blog post exists with the same slug or title. If the conditionally linked page or post exists, the text will be wrapped in anchor tags otherwise plain text will be returned.
The following shortcodes are available:
cpl
for page links.cbl
for blog post links.
Shortcodes can be used in the following ways:
[cpl slug="link"]
[cpl title="this link title"]link[/cpl]
[cpl slug="link" title="the link title"]
This plugin is multisite compatible.
Changelog
- Update plugin header and readme for compatibility with ClassicPress Directory v2.
- Update Update Manager to version 2.5.0.
Download
Download from GitHub to manually install; if you already have the plugin installed, an update will be available in the admin dashboard.
Support
If you have any problems to log or features to request, contact me via the ClassicPress Plugin Support Forum or you can log an issue via the GitHub repository.
Issues/Ideas
I’m keen to resolve any issues and happy to consider functionality requests, so please get in touch if you want to report a problem or ask for new functionality.