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 ...
0
votes
1answer
61 views
Is it possible to remove next-post / previous-post with out creating a custom template?
I'm creating a plugin that uses a custom post type. I do not want to make a custom template for viewing the posts and discovered I can add a filter for the_content to include my custom fields, this ...
0
votes
1answer
60 views
Can / should a widget plugin define its own Widget Area?
Should a plugin be able to add a widget area above the_content? (Without requiring template/theme changes.)
What would be the best way to do this?
Doubts: widgets typically echo output to the screen; ...
3
votes
1answer
241 views
WordPress adding <br> tags into plugin content
We've written a plugin that shows reviews upon usage of a shortcode. On some sites, Wordpress is adding <br> tags throughout the shortcode content, and others it does not.
The shortcode works ...
0
votes
2answers
176 views
Inserted double quote when prepending to the_content
I am trying to write a plug-in to display the RunKeeper Healthy button on single posts, but my output has an extra space and double-quote when I look at the page source. What I'm trying to do with the ...
0
votes
1answer
77 views
How to parse without changing the characters case (lower and upper) in wordpress the_content?
I made a custom parse function for my plugin and this one works great. I just have a little problem !
Here is my function :
public function ys_glossary_parse( $text )
{
// Get all the ...
1
vote
3answers
413 views
Finding the paragraphs in content
I am trying to create two functions, one that catches the first paragraph of some content, and one that catches the rest, but I have hit a bit of a conundrum.
I have this in my single.php:
<div ...