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
76 views
Why does apply_filters behave different inside and outside a loop?
What I want: the array of posts returned by creating $query = new WP_Query($args);
Why: to return specific content as a sort of API request in json format, ready to display on another site
What I ...
0
votes
1answer
80 views
Links in the_content not linked
I have alot of old posts that are being pulled with the_content() context.
In the_content() there is links in the text, however none of them are hyperlinked it just shows like ...
0
votes
1answer
74 views
how can I get seperate the HTML in the_content(); output?
I want to be able to seperate the first image form the post into a <div> tag and link it to the post page and be able to add html around the post text elements seprately.
Any help is greatly ...
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 ...