Posts are the core of WordPress. They store content, are categorized, and are expansible with meta. Posts are grouped by post type, and within their post type by taxonomy (though a taxonomy can span more than one post type).

learn more… | top users | synonyms (2)

1
vote
1answer
581 views

Adding the_date inside <p> tags around the_content

I am trying to get it so that all of my posts display the date at the beginning of the post content, such that each post begins as: "August 28 - Lorem ipsum dolor sit amet..." However, if the ...
0
votes
2answers
3k views

query_post order desc

According to:http://codex.wordpress.org/Function_Reference/query_posts To show all posts in a category: query_posts( array ( 'category_name' => 'The Category Name', 'posts_per_page' => -1 ) ); ...
0
votes
2answers
143 views

How to assign a post to a post parrent?

I want to be able to add posts to a post parent in wordpress. Is there a way? There is such option for pages but I need it for posts to. Any ideeas? Ty!
0
votes
1answer
70 views

Auto post Spams on my wordpress blog?

i don't know what the hell are these spam links on my friend's photo-blog posts! when i publish a post, this texts shown there! what should i do? (sorry for my very bad English) blog: ...
0
votes
1answer
3k views

Show all posts in category

I am trying to show all posts in each category. I've been searching around and it seems I need to have either the category slug or term_id to do so, like the code below. <?php ...
0
votes
1answer
2k views

How to get the post id (of the parent custom custom type) in a loop inside a widget?

Below there is a widget with a Wordpress loop inside. It works as expected. The only problem is this part: 'post_parent' => $post->ID, The widget is not getting the post->ID of the parent ...
1
vote
1answer
2k views

posts_nav_link() not displaying anything

I'm having difficulty getting posts_nav_link() to display anything. Below is my index.php template file, I'm using permalinks (index.php/2011/08/26/sample-post/ format) and I've currently got my Blog ...
0
votes
3answers
70 views

Editing 375 posts simultaneously? Maybe from the database?

I have a question regarding my site, tablified.com. I need to change a line of code on ALL of my posts. Within each post, there is a certain line of code that needs to be altered. This code is this: ...
0
votes
1answer
406 views

Creating / Editing a post from within site template

I am developing a website that will allow multiple users to author short posts (Kind of like a job board) and I want to know how they can author or edit these posts from within the site template (Ie; ...
3
votes
1answer
341 views

Post ids are incrementing by an unknown number?

It's really strange, but I've noticed that as I'm writing and publishing posts, the ids aren't incrementing by one, but rather by some arbitrary amount which I think is relative to the amount of times ...
1
vote
1answer
108 views

A/B testing of posts with unique URLs for each variant AND editing in custom fields

I'm wondering if anyone could offer advice on how to think about creating an A/B testing plugin for posts that: A) lets me assign unique URLs for each variant post*1) and* B) is customizable on ...
0
votes
2answers
945 views

How to disable edit post option after period of time?

How to disable edit post option for post one day after publication?
0
votes
1answer
41 views

Isn't the way posts are displayed very unefficient?

I'm pretty much a WP newbie, and I've noticed that in a lot of themes, there is the exact same code for displaying posts in three different places (single.php, archive.php, index.php etc) This just ...
2
votes
2answers
10k views

Setting Custom Sort Order of Posts within a Category

I've got this category setup that includes several posts. By design it's not a blog, but a staff listing. Currently all of the staff members have their own posts with the category. I'd like to be able ...
0
votes
3answers
6k views

How to load post content on index page using ajax when post title in sidebar is clicked

I'm working on a new blog which display in a list, on sidebar, some categories and the posts of them. In the index page, in main content, I list some post titles from other category "New". What I ...
0
votes
1answer
288 views

Get current taxonomy and display query accordingly

Okay i'm having a bit of a catogorisation/taxonomy/filtering problem here and am at loss on how to solve this. I hope someone could help me on the way a bit. Say I've got a blog about food, with a ...
0
votes
2answers
567 views

automatically create taxonomy with same name as post title

I have a custom post type called "Country Story". The title of which will be the name of the country. I want Wordpress to automatically create a new taxonomy called "country" of the same name, i.e. a ...
0
votes
1answer
101 views

Best way to enable sorting by 3 criteria on a page of listings

If you go to this site: http://www.ec-ohio.com and click on one of the links in the Directory (left column of homepage) you generate a page with listings, and at the top of each page there's 3 links ...
1
vote
1answer
104 views

How to include the latest post of a specific category on a matching page

I have a number of pages, and on each I would like to display the latest post from the category which matches that page. So I have page 1, 2 and 3, and on page 1, I'd like the latest post from ...
0
votes
1answer
859 views

how to limit and display tag?

Hi i need to show random 3 tags for a post. all my posts have been tagged with more than 10 tags, i need to display any 3 tags randomly. for eg: A sample post <a href="/tag1">Tag1</a> ...
1
vote
1answer
369 views

Dynamic carousel on individual posts

I'm using Wordpress as a CMS for a small business website (not my first choice.) Each product page needs to have a small carousel of images that contains images relevant to the product. I've set up ...
0
votes
1answer
68 views

long blog post on self hosted wordpress blog not displayed

I have my self hosted wordpress blog here I recently created a blog post which is very long with so many pictures and text, but i suddenly found that my blog post was not displayed but if i cut short ...
3
votes
2answers
1k views

How to force one column layout on custom post type edit page?

I've created a plugin using custom post types and I need to force the default two column post page to a single column. At the same time, the Publish metabox must move to the bottom. I need to do this ...
0
votes
2answers
558 views

<!--more--> help

I have a custom post type called "Blog", in my templates I looping over the blog type and doing the following, <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> ...
1
vote
1answer
204 views

Mixing Tweets with Posts

I have a client who wants their blog to display both Posts and Tweets in chronological order. These should be mixed into the same feed. I didn't find any plugins that accomplished this, although there ...
-1
votes
1answer
150 views

Sell “create a post”, paid account for post creation

How can in wordpress, one sell the "create post" option To elaborate more. One has to pay an amount before he can make create a post on the wordpress site. MORE ELABORATION Suppose a person pays ...
3
votes
3answers
2k views

Is there an if statement that can determine if a post in the loop is the last post?

For example, inside the loop could i do something like this if lastpost { } else { }
0
votes
1answer
212 views

Is there a function to get post info for any publish_status by post ID?

I'm trying to, essentially, check whether a post exists and if it does (in published, draft or auto-draft states) return the post info. I'm finding get_post() doesn't seem to work with drafts, and ...
2
votes
1answer
2k views

.current-menu-item class on custom post type children pages - again?

There is the situation. I have created the custom post type - products withfuncionality like pages - I have to create hierarchy. f.e: Chairs: Oak Chair Nice Chair The weird thing happens with ...
2
votes
3answers
434 views

Limit amount of results returned

How can I limit the amount of results returned? $images = $wpdb->get_col(" SELECT ID FROM $wpdb->posts WHERE post_type = 'attachment' AND ID in ($meta) ORDER BY menu_order ASC ...
0
votes
1answer
133 views

Prevent duplicate pages from being added

Im using this code to prevent duplicate post from being added but i also need to prevent duplicate pages too. Can Someone please help? function clearDuplicatePosts(){ global $wpdb; $prefix = ...
0
votes
1answer
299 views

Facebook Share Thumbnail

From the past few weeks I am noticing that when I share my posts on facebook, the thumbnail is not coming, I am keeping a featured image for my posts, but when I share it on facebook it shares the ...
0
votes
2answers
200 views

Can I style single post that are in multiple catergories?

I have a regular wordpress site and I am trying to make a mobile version of the same site. For the blog section, I have put all of the posts in two categories: blog and mobile. The posts in "blog" ...
0
votes
1answer
2k views

Getting post id from wp_insert_post_data function?

I'm trying to use the function get_the_tags() from outside the 'loop'. I understand this can be achieved by using the post ID like get_the_tags($postID). Does anyone know how I can get the post ID ...
0
votes
1answer
643 views

query for filtering published posts?

i need to filter count based on a date and post_status = 'publish', how to write a query to filter, as far as now i have filtered based on date, what is the query need to filter based published post. ...
0
votes
2answers
417 views

Why is my content missing from homepage? [closed]

On my website http://filmblurb.org, all the posts and everything on my home page are missing. Can you anybody tell me how to fix this? Thanks! (If it helps, I'm using Wordpress 3.2.1.)
0
votes
1answer
472 views

display only the title of the post into a certain category

My site works with phrases and texts In one category, the users send statements and debate about it. In another category, are sent statements and debate about them. I would like to show only the ...
-1
votes
1answer
87 views

How to create a cumulative posts and members count

I need to show my users cumulative posts and members registered count by date. It has to be displayed in an array format like this for posts array(array(2011,08,02), 500) array(array(2011,08,03), ...
0
votes
1answer
205 views

Query post types with multiple keys

I'm looking for a way to only show posts results that contain all of the custom fields requested. Not one or the other. I was only able to get results with one array at a time. Any help would be ...
1
vote
1answer
128 views

WordPress Comment posting problem

I am getting trouble with WordPress comment posting. As per my WP setting there is no approval needed to display the comments under blog after posting. Most of the comments posted display immediately. ...
0
votes
1answer
3k views

How to create a “latest news” page showing a list of posts from blog category

I am using the Modest theme from elegant themes at http://lilsaintz.co.nz Under the slider on the homepage, there are three content areas that are generated from pages. I would like to make one of ...
2
votes
1answer
357 views

Add an image box besides featured image?

When you want to associate an image to a post which already has its own featured image, you have to use a custom field : you upload an image just as if you wanted to add an image inside your post, but ...
0
votes
1answer
65 views

Actions to use when flushing cache (when posts are added / deleted / modified)

I'm looking for a list of action tags that are relevant when you: create a post, with any method, so basically using wp_insert_post modify a post, like changing status, title, content, terms, meta, ...
4
votes
3answers
8k views

Disable WordPress' blogging functionality and disable 'posts'

I'm currently using WordPress for a website and it will simply be acting as a CMS rather than a blogging platform. This means that WordPress' 'posts' are not needed. Is there anyway of disabling them ...
1
vote
1answer
2k views

Image Insert into posts and pages not working after 3.2.1 update

And I've tried disabling all plugins and using the Twenty Eleven theme. In our sites network, I'm the network admin, so it's not a permissions issue. Any explanation or ways I might be able to ...
0
votes
1answer
186 views

How to display Changing post link for 24 hours in x category

Here is an example Cat 1 has 6 post: ( post 1 , post 2 , post 3, post 4 etc.. ) Cat 2 has 6 post: ( post 1 , post 2 , post 3, post 4 etc.. ) i want to display random post like this: Today's CAT 1 ...
0
votes
1answer
31 views

Thumbnail Image to go in the post aswell

I have looked everywhere but I cant see any clear answers, a lot about getting a thumbnail image. But I am after having the thumbnail which was uploaded to the post to also be in the post just made. ...
0
votes
1answer
1k views

Insert JavaScript in a blog post or a new page?

I want to insert some JavaScript into my post. Actually those are some small apps made in JavaScript. Please let me know how to insert the JavaScript into the post ?
0
votes
1answer
259 views

All images on one line for each post

Having trouble getting around the issue where my client wants all of the images for each post to be on one line. This can be done in the editor, but they are not very tech savvy -- just wants to be ...
0
votes
1answer
46 views

How *not* to show the last post on the latest posts list

An image speaks for a thousand words so please bear with me: http://interativo.modateca-sc.com/ The last post appears twice. Once as the feature post and then again on the "main blog part" where the ...