The post-content tag has no wiki summary.
0
votes
2answers
26 views
Show image exactly defined to a width
I have a photoblog displaying posts as image galleries having width 500px and some posts as single image of width 900px. For posts with 900px width images, I made category HQ.
Posts with 500px width ...
-1
votes
0answers
16 views
img tag doesn't display in post content when added via wp_insert_post function
I have a wordpress photoblog. I developed a small function of my own using wp insert post function to make post programmatically. It uploads image from my server and makes a post.
Problem is, it ...
0
votes
1answer
34 views
Post content not showing some content
I'm inserting posts by wp_insert_post function. It works like first a post is created to get its id then an image is attached to that post id. I attach images by media sideload function. Here is the ...
0
votes
1answer
56 views
Display one post in different formats conditionally
I think I just coded myself into a corner. I am setting up a page with an image. The image is an imagemap with lots of links. When you click on the link, it opens a post in a colorbox. So far I have ...
0
votes
2answers
28 views
How to display the content HTML of a page without displaying the gallery code as well
I am using the below to fetch the content of a page by its name and output the html
$my_wp_query = new WP_Query();
$page = $my_wp_query->query(
array(
'post_type' => 'page',
...
0
votes
2answers
192 views
Strip HTML Tags From Search Results
When I make a search, if there is an image title within a img tag, it's displayed in a very ugly fashion among the search results (the whole tag is displayed and the picture too).
I found this script ...
1
vote
1answer
159 views
Updating post content on the front end
I have used the code below to add frontend editing to my posts/pages. How would I go about saving the post content when an update/save button is pressed?
$post_id = get_the_ID();
$settings = array(
...
2
votes
2answers
209 views
How do I insert a short tag after 350 words in post_content?
I have 700 posts mostly in excess of 1000 words each. I'm setting this up as a membership site. I'm using wishlist member and would like to protect all the content after the first 350 words. This ...
0
votes
2answers
160 views
If post content exists (any post content), do not display featured image
If post content exists, do not display featured image, if it does not exists, then display featured image or url. So, basically I want featured image to be displayed only if nothing else in post ...
0
votes
0answers
23 views
Final Attempt - Adding default post content based on category? [duplicate]
Possible Duplicate:
Adding default post content for category
Been struggling with this for a while now, but thought I'd give it one last go.
I have some default html content (a few divs to ...
4
votes
3answers
252 views
How to embed page content in a blog post
I've built an HTML table that is posted on a page in my site, and I'd like to use that same content inside a blog post (something of an announcement of the table's publication). The table is likely to ...
0
votes
1answer
79 views
Query does not return content
Working on updating an old WP site developed for WordPress 2.0 and have a post (page) query that does not return the "post_content" data.
Here is said query:
$the_query = ...
-1
votes
1answer
127 views
using query_posts to pull posts out of a category in a while loop. Getting odd echo
I have a custom template file I've been workin on. I have this code performing a loop after it queries posts from a certain category. This works and I have each post configured with styled divs, but ...
1
vote
1answer
206 views
Check if page/post has any anchors that link to an image jpg/gif/png
What I'm aiming to do is add fancybox to a site I'm developing, but I only want to enqueue the JS/CSS etc if the page/post needs it.
My thoughts are that I would need to check all the anchor tags on ...
0
votes
1answer
172 views
Plugin scans for images in post_content, how about “featured image”?
I use WordPress SEO by Yoast, especially for the Google News sitemap feature.
My theme is coded in such a way that the main image of a post is also the featured image of the point (i.e. the same ...
2
votes
2answers
5k views
Get post content from outside the loop
Is there a way to get the content from another outside the loop? The ID is 302 and I need to display the content of that on another page.
1
vote
1answer
126 views
Float images in content
This is not a programming question. I have the problem to update the content in my WordPress blog. I'm very aware this problem can be solved by html modification. But my client doesn't know about ...
0
votes
1answer
271 views
Where is the content cache when using apply_filters('the_content…?
The following code block is giving me an accumulated result:
foreach($sections as $section) {
$content_post = get_post($section->ID);
$content = $content_post->post_content;
...
0
votes
2answers
60 views
Wordpress: Loop Help
I was working on this site this morning and I ran into a bit of an issue with my static page.
I have a "featured" post section and I use:
<div id="featured">
<img src="<?php echo ...
6
votes
4answers
17k views
Proper way to get page content
I have to get specific page content (like page(12))
I used that :
<?php $id=47; $post = get_page($id); echo $post->post_content; ?>
Work nice execpt for compatibility with qtranslate ...