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)

0
votes
1answer
163 views

2 tick boxes appearing below comments

In my site I have two tick boxes appearing above each other underneath the comments section. I have tried disabling pingbacks etc. How do I remove these? example - ...
0
votes
1answer
587 views

Add custom field automatically (add_post_meta) with value based on number of words of article

In this topic our friend @toscho created a function that sets the font size according to the number of words in the post. Based on this function, I want to create a custom field whose value will be ...
0
votes
1answer
914 views

Attachment image single page

How do I make a single post page for a single attachment image below and link to it? <?php get_header(); ?> <div id="body"> <?php if (have_posts()) : ?> <div ...
1
vote
2answers
487 views

Issue where WP Featured Image will not display

The code I'm using, is outside of WordPress i.e. define('WP_USE_THEMES', false); require('blog/wp-blog-header.php'); global $wpdb; The code that I'm trying to display the post thumbnail (the ...
2
votes
1answer
1k views

How Can the Users Make a “Playlist” of Posts?

I have an audio website and I want to allow users to make custom playlists from posts. I am using posts as Albums which contains the Tracks. I thought of creating a custom post type and using it to ...
4
votes
1answer
686 views

How to Add jQuery Infinite Scroll to My Custom Archive Page

I currently have a custom archive page that displays my current post at the top and then links to all of my older posts below that. However, I need to break up the page so that it displays the ...
0
votes
1answer
236 views

Using setup_postdata() with multi-dimensional array

I feel like this is going to be one of those slap yourself on the head questions, but here it goes anyway: I have a multi-dimensional array of data: Array ( [0] => Array ( ...
1
vote
3answers
92 views

Check to see if post is live before displaying the content

I'm trying to pull the content from a post/page into a template file. I'm using the following code, which works fine HOWEVER the content is pulled in regardless of whether it is set to 'live' or ...
-1
votes
1answer
835 views

How can I make my blog private? [closed]

I want to create a blog to share with my family, but random Internet strangers should not be able to read the posts. How can I make posts hidden to the public, by default? I know I can manually edit ...
0
votes
2answers
387 views

Viewing category won't show up Custom post type posts

I'm having a strange problem: I've build a category page and want to load up all related posts of a custom post type but won't give any results. I'm using the following code: query_posts( array( ...
6
votes
1answer
86 views

Allow variable amount of comments before pagination

There is an option in the admin settings allowing you to define how many comments should be listed before creating a new page for the next ones. I would like to have the same number of comments for ...
2
votes
1answer
1k views

Multiple Content Block

I'm trying to create a custom post type and would like that post type to have two content blocks. So that in the loop I can ask for content-1 and content-2 separately. I can write the code just ...
0
votes
2answers
99 views

How do I get blog posts to appear within CMS?

I'm working with a WordPress CMS website that was set up without a blog. I want the site to continue to function as it has, with mostly static pages, including the home page. I want a page called ...
0
votes
1answer
7k views

Open a wordpress single post in a lightbox without the header and footer

I am developing a plugin which requires to open a single wordpress post inside of a lightbox. Here are a few details : Currently,I am using colorbox for lightbox. The lightbox is triggered to open ...
0
votes
1answer
50 views

display post according to the term

I want display all my taxonomy terms on the left side of my website, so that when a user clicks on one of the terms he can see the posts according to it. How can I do this?
0
votes
1answer
2k views

get posts from Custom Post Type & Category

Ok, I've been frustrated about this one: I've got a category page with the Title + Description of the title. Under it I would like to show all the (custom post type, 'blog') posts related with this ...
0
votes
1answer
256 views

Insert new post for each user infinite loop error

I wrote this little function to automatically create a post for every user of the blog but it creates an infinite loop (I disabled it to stop it creating new posts). I'm not very skilled in php, I ...
0
votes
1answer
93 views

Home page: using custom fields for posts and pages

in my home page I'd like to display some pages and posts title using the custom fields. Unfortunately my code prints only posts title. If there is a key "highlights" print the title. Here my code: ...
0
votes
1answer
79 views

I can't find the relevant part of the loop in my theme file. How do I find the full content with “More…”

Brunelleschi is based on the Twenty-Ten theme, but has really grown since then. I like my theme, but I'm trying to modify the way a posts in page plugin works and I need to copy the relevant part of ...
1
vote
2answers
414 views

Latest 5 posts (custom post type), each post different CSS

While creating our portfolio i'd like to make a dynamic header with the latest 5/6 featured images in a row. All these posts come out of the 'apps' custom post type. <div id="header"> ...
0
votes
1answer
390 views

Blog post not showing title

When on my main site NewMediaNook.wordpress.com, one particular post does not show a title (see image below). When I am on just that one post, the title appears, and all other titles appear when on ...
1
vote
1answer
157 views

How can I show 1 featured post in a styled element, and the next few below differently styled

I'm looking for some thoughts, ideas, and/or direction on what is the best way to accomplish this: Basically I want to have 1 "featured" post in a differently styled div, and then display the next ...
0
votes
1answer
85 views

Last three posts not being put in order by date. How to fix this?

My company adds a quote of the day each day. The last three posts that I have put are not in order though. The first quote I posted 3 days ago is at the top the post I posted yesterday is under that, ...
1
vote
1answer
597 views

Allow all attributes in $allowedposttags tags

I would like to use $allowedposttags to allow extra HTML tags during entry submission. Can I allow all attributes for a specific tag using $allowedposttags? For example, the code below will allow ...
0
votes
2answers
687 views

Alternating post layout

I am trying to create a layout with two different divs alternating vertically. For example the even has to be: picture + content; and the odd has to be: content + picture. Here is my code, at the ...
0
votes
1answer
336 views

Get posts from current category?

How can i display 5 posts from current category (exclude current post). Order by post time. Example: To day news to reading 3 (12/11/2012 - 8:10 PM) To day news to reading 2 (12/11/2012 - 6:07 AM) ...
1
vote
0answers
319 views

Posts added with wp_insert_post are moved to trash automatically

I've got a script that loops through some data and automatically creates some posts. foreach($data['title'] as $title) { $my_post = array( 'post_title' => $title, 'post_content' ...
0
votes
4answers
8k views

Multiple loops in same page, without duplicate content

I'm trying to make a page with multiple loops, I need every loop to display a predefined number of posts from the same category (every loop displays X number of posts from Category CATS). But I also ...
0
votes
1answer
148 views

Conditional for a Single Post That Belongs to a Category?

I have categories like gaming and movies on my website and when a user visits any of these categories the content in the sidebar is displayed depending on the category they are in. So gaming content ...
0
votes
2answers
561 views

How to change the order of elements within a post?

I have a site with several thousand posts. They all have just a single attached image of varying size. All posts are displayed in full (no thumbnail view). I'd like to be able to change the way the ...
1
vote
1answer
191 views

The short content by characters [duplicate]

Possible Duplicate: excerpt in characters In some of our sites, we to show excerpts of posts (the content administrators don't enter excerpts). We could use the the_excerpt function, but ...
0
votes
1answer
336 views

The_excerpt() doesn't parse <!--more--> - how to change that?

I'm using the_excerpt(); in blog.php file (post listing page) and it doesn't recognize <!--more--> if "Excerpt" field is empty and it grabs the beginning of the content as excerpt. This issue ...
2
votes
2answers
807 views

Edit a post from frontend. post_tags get saved, but not separated

I'm building a CRM-Theme for Wordpress. So i post, edit and delete posts from the Frontend. I'm on a good way to resolve all problems, i think. But there is one failure. At the index there is a "edit" ...
0
votes
1answer
140 views

Where do wordpress posts go?

We have wordpress installed in our data center and it manages all the content in our corporate website. So I have a list of pages that are accessible and available in tree view. We are interested in ...
1
vote
2answers
301 views

Multiple loops are not reset

My lovely colleagues have once again designed something that gives me a hard time getting it in Wordpress. Surprisingly it's something that I have done multiple times before; having recent posts and ...
1
vote
1answer
186 views

I want to display custom text widgets for each post in the sidebar?

Ideally I am looking for two text boxes added to the 'Add new post' admin page, and the data from those two boxes be displayed in the sidebar when viewing the post page. So the sidebar displays the ...
3
votes
1answer
29 views

how to enable different number of revisions for different blogs when using WPMU?

for example i would like blog1 to have at most 3 revisions for each post but i want blog2 can have at most 10 revisions since this blog may have more than one editors that i want to enable this blog ...
4
votes
1answer
398 views

List latest posts in WP-Admin

I run a multiple author site and I have created a plugin in wp-admin where authors can connect and collaborate with each other. To enhance it, I want to display a list of latest posts, this list ...
6
votes
1answer
2k views

Stop WP from creating “Sample Page” and “Hello World!” post

Is it possible to stop WP from creating the "Sample Page" and "Hello World!" post when creating a new blog?
0
votes
1answer
202 views

Wordpress sub-posts and permalinks

I'm thinking about one problem... There is a set of regular posts. Just posts in categories. I need to add for some of them a sort of subposts, posts which will be related to parent-post. This ...
-1
votes
3answers
70 views

Adding a post to a page

I would like to know how I can add a specific post to a specific page? It would be great if anyone can suggest a reference to this problem. Do I need to create a post category to relate with a page? ...
3
votes
2answers
4k views

How can I export WordPress posts' attachments?

I am in the process of transferring posts from one WordPress install to another. I can use WordPress' Tools --> Export to export the XML I need for my posts. On the new install, I then use Tools --> ...
1
vote
3answers
2k views

How to add/assign or change featured image in post programmatically?

I have written a plugin that (besides other functionality) makes posts from existing content. For each post I have one picture - how to make them featured programmatically? I do the: $id = ...
1
vote
1answer
178 views

Query posts from different categories in multisite

In my planed multisite installation, I want the members to be able to post in one of two different categories. Members in A can post in 1. Members from B can post in 2. All members can comment ...
0
votes
1answer
685 views

Add $values to post_class()

This must be pretty simple, but it is eluding me. I need to add several classes to post_class() http://codex.wordpress.org/Function_Reference/post_class I can add one class in a page template, as ...
-1
votes
1answer
253 views

Adding a content rating system

I run a multiple author site and the content is directed to various age groups. Instead of forcing the writer to manually note which age group the post is appropriate for, I want to add a content ...
5
votes
2answers
15k views

get all posts ID from a category

Problem: I need to get an array of ID's of posts from a given category If the category have any posts. This is to be used on a plugin options page. So far I have: $posts = ...
0
votes
1answer
294 views

Converting multiple loops into one single loop with pagination

I am using Isotope jquery plugin to filter/sort posts in Wordpress but to correctly filter the posts into the right order I have needed to output each category one after the other. To do this I've ...
1
vote
2answers
130 views

I would like to have different styles for my posts based on the content of each post

Here is my wordpress theme to check out(its not completely finished): http://benlevywebdesign.com/wordpress/ This is my first time working with php/wordpress and making themes so keep that in mind. I ...
0
votes
2answers
55 views

Can't understand why sometimes a [caption] field appears

I'm trying to make a php script which, given a post id, returns post content. I'm not the one who writes articles, I'm just operating on a wp site. Post content is for an app of mine which has to ...