Add option to remove links from posts#137
Add option to remove links from posts#137JiveDig wants to merge 2 commits intobillerickson:masterfrom
Conversation
New parameter of link_posts => true to optionally disable linking of posts. New conditional check to see if post_type is public before adding links.
|
Sorry, I'm a bit swamped at the moment. I'll try to take a look at it over the weekend. One thing I will change is the parameter name. I'd prefer |
|
Cool. Just updated the PR with the new name. |
|
I've added the include_link parameter. Can you explain to me the point of checking whether the post type is public? I didn't include that because I couldn't imagine a use case where you would be publicly querying and displaying a non-public post type and expecting the links to not appear. If there is some strange situation where you are querying a non-public post type, you can also use the include_link="false" parameter. |
|
No prob. Sometimes I register a private post type called Testimonials, but allow it to be publicly queryable. This way I can show random testimonials via the shortcode throughout the site. I'm not sure my PR handled that scenario the best way, and it's possibly not even worth it since anyone skilled enough to register a private CPT should be able to use the shortcode accordingly. |
New parameter of link_posts => true to optionally disable linking of posts.
New conditional check to see if post_type is public before adding links.
My editor removes whitespace/spaces on save, that's the reason for the extra changes in here. Hopefully not an issue.