[wp-hackers] special shortcode processing for a certain CPT
Nikola Nikolov
nikolov.tmw at gmail.com
Tue Feb 11 09:09:19 UTC 2014
Well, you can conditionally move the do_shortcode filter higher up just for
that post type(I assume you're expecting those results on the single
template for that post type), but I don't know what side effects this might
have.
I think the &#....; is added by the wptexturize function.
On Tue, Feb 11, 2014 at 1:56 AM, Haluk Karamete <halukkaramete at gmail.com>wrote:
> I wish the content of my custom post type to be preserves AS IS all the way
> until shortcodes API kick in.
>
> When I run my shortcode in that post type, I'd like that shortcode's
> $content variable to 1 to 1 access what I entered.
>
> As of now, I'm getting <p></p> and <br />s plus the Ӓ stuff.
>
> I can use the
>
> remove_filter( 'the_content', 'wpautop' ); to take care of the obvious but
> I could not figure out a way to take care of the &# stuff.
>
> Are there other processes that turns special chars into their html char
> code equivalents, such as
>
> ‘
> ’
> ” and so on?
>
> How do I prevent this from happening so that when the shortcode API gets a
> hold of the $content of my custom post type, that content is exactly what
> was entered into the text editor?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list