Tagged Questions
0
votes
1answer
78 views
filter the_content, custom post type, and wp_query
I thought this was going to be quick and easy, but naturally it's turning out to be more complicated. I'm writing a simple plugin that creates a custom post type "Ad", and then puts a random ad at ...
1
vote
1answer
249 views
Exclude the_content (); from page password protection
I use a page template to show custom post type.
All content from the custom post type should be password protected. I´d like to use the wordpress editor for some additional public information. Can I ...
2
votes
2answers
287 views
Rendering Custom Post Types independently of the theme in use
By using a plugin called "Custom Content Type Manager", I have implemented in my blog a simple Custom Post Type called "game review" which is simple a post, plus some extra fields which represents the ...
1
vote
1answer
296 views
Add $more_link_text parameter to the_excerpt()
this filter is on the Wordpress Codex …
add_filter('excerpt_more', 'new_excerpt_more');
function new_excerpt_more($more) {
global $post;
return '<a class="moretag" href="'. ...
2
votes
1answer
75 views
Sanitising post content for use in an email
I'm sending the content of a custom post type in a plaintext email (it's to send competition entries to a panel of judges), so I need to make sure that $post->post_content is correctly sanitised ...
0
votes
1answer
235 views
Wp-query causing problems with the_content();
I'm using some code provided in an answer on here to calculate "post X of Y" and display pagination icons on single.php.
It works beautifully but it's causing problems displaying the_content();
On ...
3
votes
1answer
2k views
why doesn't the_content() work in this {single-custom_post_type.php} page?
This code is from my page single-publication.php.
It outputs the relevant custom fields etc (here wrapped in template tags), but the_content() won't output the post content. I've resorted to using ...
0
votes
2answers
886 views
How can I remove filters from custom post types?
I created a custom post type which I'll use as landing page for PPC. Now on that custom post type I would like to remove all the filters which are adding the social media buttons for example. I tried ...