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
178 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
353 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
1k 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
181 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
69 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? ...
2
votes
2answers
3k 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
1k 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
158 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
599 views

load more portfolio on page end reaching

i like to add an automatic load more link on the bottom of the page, so when a user reaches the end and starts scrolling the next recipes (in this case) will be loaded. ...
0
votes
1answer
411 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
218 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 ...
4
votes
1answer
9k 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
257 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
117 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
51 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 ...
0
votes
2answers
258 views

How to Make infinite loop of post

I am using Post contents as a slider contents, i need to make the post infinite number of loop, ie, If i view the last post after that first post should display and before first post the last post. ...
2
votes
1answer
86 views

How to add in title a date but with other color, like in iMDb titles?

Is there a way to add in title a date but with another color, like in iMDb titles? Like in this title (click on it): http://www.imdb.com/title/tt1606378/ To be more clear, see this picture The ...
2
votes
1answer
497 views

pagination hook doesn't work with search results

I use my custom Pagination function on my web site; #Pagination function pagination($prev = '«', $next = '»') { global $wp_query, $wp_rewrite; ...
0
votes
1answer
43 views

Limit the number of posts a category can have - newest post goes in, oldest one drops out, possible? plugin?

I would like to limit the number of posts which can belong to a given category, for example: The "News" category should have no more than ten posts. When the eleventh post is created the oldest post ...
1
vote
1answer
468 views

is there a way to show the the post title after the image?

Trying to show the post title after the image in the main blog page and single page, I have tried to edit the content.php but unable to achive the result I need, which is basiscally IMAGE TITLE META ...
0
votes
1answer
593 views

Only show featured image on exerpt and exclude images in post

I have below code which displays the featured image from the post. But when I add an image to the post it also shows up with the featured image. What I need to do is just show the featured image and ...
0
votes
1answer
3k views

posts_per_page doesnt work

Here is the my custom query ; <?php $Poz = new WP_Query(array( 'posts_per_page' => 3, 'orderby' => 'date', ...
0
votes
2answers
45 views

Short link to read complete post

I am just a newbie to the WordPress. I was just going through the demo sites and I found a website. Here you can see there are couple of posts in a home page and just below the every post there is a ...
0
votes
1answer
185 views

Sends out email to admin with post author

Hello i'm using this : add_action('publish_post', 'send_admin_email'); function send_admin_email($post_id){ $to = 'admin@email.here'; $subject = 'subject'; $message = "Here is ...
2
votes
1answer
437 views

Pull posts from another wordpress install on same server

I've searched already and couldn't find anything tailored to my specific problem, apologies if it has already been asked though. I have a public Wordpress install and a members only one on a ...
0
votes
2answers
105 views

Multiple blog “feeds” in a single blog each with distinctly styled post pages

So, I get how to easily create separate blog "feeds" in a single blog by using categories. While I can style the category feed pages differently, unfortunately they both just provide links to the same ...
0
votes
1answer
34 views

Display the popular tags by default in the backend post edit page (without having to click on the link that displays them) [closed]

I know there should be a way to call the AJAX function by page load but I've been looking at how to do this for hours and can't figure it out. Any help is appreciated.
0
votes
1answer
190 views

All Posts Linking to Author Posts directly

I want to do "All Posts" hyperlinked to Author-Link so when user clicked All posts then user will be directed to Author's all posts, instead of "All Posts of: Author-Link" I don't want repeatation of ...
0
votes
1answer
128 views

how many visitor open this post? [closed]

i want to create, how many visitor open this post it display in homepage below of summary like this .how i can do it? my site.my css code /***** Structure and Layout *****/ body { font: 62.5% ...
0
votes
1answer
59 views

Can't match title in database

This is very perplexing and hope someone can help me. Here is some code I'm using to see if a title exists in wp_posts table $mypostids = $wpdb->get_results("select ID from $wpdb->posts where ...
2
votes
1answer
94 views

How do I batch create revisions of all posts?

I cleaned up an old-site from pasted tags, manually created lists, etc, and I'd like to keep the old posts as "revisions", so we can easily "compare" with the old posts and retrieve/revert the ...
1
vote
1answer
77 views

Display number of posts via adress bar?

when i call this link ; ?s=key&order=ASC wp display my search query order by ASC. ?s=key&order=ASC&number=10 how can we display whatever i want to display postnumber like 10 or more ...
0
votes
1answer
56 views

posts going to 2 pages/categories only show up in 1

I have a portfolio website where my portfolio updates are supposed to go to both my portfolio and blog pages, as well as show thumbnails for the posts on my homepage. The thumbnails work perfectly; ...
1
vote
1answer
2k views

Execute function when post is published

I try to use this function i have created when a post is published for the first time. function a_new_post($post){ $post_id = $post->ID; if ( !get_post_meta( $post_id, 'firstpublish', $single ...
1
vote
2answers
130 views

Can I lock a post in position, so it always appears on the homepage?

I'm a complete noob when it comes to Wordpress, but I've joined a company who use it as their website and they need an answer quickly. I want to know if I can I lock a post in position, so it always ...
3
votes
2answers
533 views

Hide comments awaiting moderation from user who submitted the comments

This is a strange one. I host a website that is primarily for children. All posts are moderated. Users are required to enter a user name and location (State), but are not required to be registered ...
0
votes
1answer
140 views

Displaying posts on Homepage

I am wondering how to add a column to my homepage that shows the five most recent posts from the blog page located under the "Latest News" heading. Here is the link to my development site. ...
3
votes
1answer
303 views

Change post format using custom field

I'm creating a theme using the CF Post Formats plugin. But I've run into some trouble I don't know how to solve. Here's what I want to be able to do: Create a new standard-format post Enter a url ...
0
votes
1answer
534 views

Trying to edit archive.php to only show post extract, with featured image

I am using two themes (full and desktop), so I am trying to get them to behave in the similarly. The archive.php for the mobile theme is doing what I want, which is to just show the title and post ...
0
votes
1answer
561 views

White Blank Page when Updating and Publishing Page/Post

I have a serious problem here, every time I publish and update a page/post it displays a white blank page.. here I don't know how to fix it.. is there anyone that can help me? Thanks :)
3
votes
1answer
294 views

Restrict users from editing post based on the age of the post

How can I restrict users (based on Capabilities) from editing their published posts after a custom amount of time. For instance, a user that can publish_posts (authors) can not edit a their post if ...
1
vote
1answer
423 views

slideshow is not showing in a post call with ajax

this is the code I use to call ajax posts in the same page. It's works fine but when the post is load the slideshow in the post (add via short code) is not showing.... the ajax call ...
0
votes
2answers
123 views

Paragraphs removed when using get_post_custom()?

I'm using a custom field plugin called Advanced Custom Fields to create custom fields, but i don't think that's what's causing the problem. When i fetch the custom fields from a template using ...
4
votes
1answer
105 views

Any way to create a revision of a post ONLY with a new button in the Meta Box?

Quite sure there isn't a way baked in to do this, but anyone have any ideas on how I would get something like this done? I want to turn autorevisions off and ONLY have a revision created when a button ...
1
vote
2answers
307 views

Adding default post content for category

I'm trying to add some default content to my posts using this code in my functions.php: add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "My ...
4
votes
3answers
7k views

Hook for post and page load

I need to run a function when a particular post or page is loaded. Is there any hook that lets me check whether a post is being displayed during page load ?
0
votes
1answer
131 views

Adding a time stamp on post view

Hi there we are using this ajax function to update the views of our custom "posts" if( !empty( $_REQUEST['action']) && $_REQUEST['action'] == 'update_view_count' && ...
-1
votes
1answer
729 views

wp trim function not working

Ok i have this code currently. <?php query_posts('category_name=widgets2'); echo "<div id='widgets-wrapper2'><div id='marginwidgets' style='overflow: auto; max- width: 100%; height: ...
1
vote
1answer
242 views

Get the author of the latest revision

I would like to display the author (username) of the latest revision of a post from inside the loop. I tried get_the_author(), which echoes the username and $post->post_author(), which returns the ...