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)

2
votes
3answers
1k views

Adding “latest from the blog” to the homepage

I have a big problem and no clue how to solve it :) I want to add a "module" to my homepage (static homepage, not blog posts) that will display the 2 latest blog posts in a very particular way and ...
0
votes
2answers
1k views

how to grab first link in post… and of course call it

I have been trying to get the answer to this for ages now and wondered if anyone here could help. I would like to 'grab' the first link in a post and attach it to a button/image. I have tried the ...
4
votes
1answer
2k views

Linking Two Post Types

and thanks in advance for your help. I've done some searching, and this question has been answered a couple of times with reference to the "posts 2 posts" plugin, but the documentation on that is ...
0
votes
2answers
504 views

While in “the loop”, detect if a post is the most recent

While inside "the loop" in WordPress, is there an easy way to detect if a post is the most recent? A Usage Example: I want to make the first post output an H1 for the title instead of an H2. Or I want ...
1
vote
4answers
1k views

Adding footers to posts?

I'm trying to add footers to the end of my posts. I need to be able to assign different footers to different posts (not globally). I tried using WP Post Footer, but it's not working on WP 3.1.2.
1
vote
2answers
301 views

How to list users and their post amount?

I want to list all the users of my site and the amount of posts each user has. So far I have the function below, but I don't know how to pull in each user's ID to use in the count_user_posts... ...
0
votes
2answers
3k views

Bulk Image Uploader to create new post from each image [closed]

Is there any plugin which creates a new post from each image I upload/select with it? I want to create many posts with one image per post. Currently I select, upload all images. Then create new post, ...
1
vote
1answer
100 views

finding whether request is for post, and post id

I need a hook such that when visitor lands on any of the post (not page), I need to record a hit. How can I find whether the request is for post, and is there any hook to find if the loaded content ...
1
vote
2answers
440 views

Exclude newest post from category X but show rest

I would like to show all posts but only exclude the NEWEST post from the 'Featured' category, other posts from this cat should display. Any idea what I should add to the loop to achieve this? I want ...
1
vote
2answers
1k views

Filter Home Page Posts in Buddypress

I would like to remove blog posts from the home page if they belong to a certain category. How can I go about this in Buddypress (preferably without a plugin)?
3
votes
1answer
2k views

upload image in a meta box

im trying to implement uploading via a meta box without using the media manager, but i want it to add as a post attachment. im currently doing it just uploading and saving to the server. <?php ...
2
votes
1answer
143 views

Is it possible to have two different previews of a post (ie. two templates for one post)?

I'm looking for a way to allow post editors to see two different previews of the posts they are writing. On the front, the same post can appear it two different sections of the website (each shows a ...
-1
votes
1answer
283 views

Cannot publish posts, but can create new pages

I am building a site on WordPress. I can't publish posts: when I attempt to do so, the site just hangs and then I get a time out page. However, I can add new pages without a problem. I have tried: ...
2
votes
1answer
1k views

[Plugin: Posts 2 Posts] How does it work?

I recently discovered Scribu's Posts 2 Posts plugin, which seems to be exactly what I was looking for in order to connect pages and posts for a big editorial website. But I cannot get it to work, ...
0
votes
4answers
180 views

Making a new post visible on a specific page

I am creating a wordpress site which will have different sections , which will essentially be pages which can be accessed through a top level menu. Now when I make a post, I dont necessarily want all ...
0
votes
3answers
488 views

Automatically create a new page daily with last three posts

Is it possible to create the following: A new page dynamically daily, containing the last three posts Archive this page, so that tomorrow's page is a new page, with the three newest posts ...
0
votes
1answer
214 views

Using the_excerpt() some posts are truncated and some are not

I have a template that pulls three posts query_posts() loop. Two of the posts and are truncated to 10 words like I have it set in a filter. The third decided to ignore the filter and is spitting out ...
2
votes
1answer
1k views

Edit the “Post updated. View post” link

Is it possible to edit the "Post updated. View post" link and remove the "View post" entirely? Also change the "Post" to the name of a cpt? Thanks guys! Update: Here is the code I used and it ...
1
vote
1answer
2k views

I am trying to create a simple frontend form for posting

i am trying to learn and create some deeper things with Wordpress. My goal is to create a code/script/plugin that will allow me to post from the frontend. I have seen many plugins, like templatic ...
0
votes
2answers
281 views

960gs different classes on teasers posts

I'm having hard time trying to use teasers post in my wordpress theme (based on 960gs), as you can see here http://img17.imageshack.us/img17/794/schermata20110420a15045.png what I got till now is one ...
0
votes
2answers
84 views

Is there any better/faster code than this ? It shows the categories that an author had ever posted in

I have this query that shows the categories that a user had posted in. For example if I have 3 cats, name NEWS, MEDIA, PUBLICATIONS and the author had only posted in the first two, it will show NEWS ...
1
vote
1answer
297 views

Wordpress - Hide posts in admin from user who did not write them

Working on a site and the user only uses two roles. Admin and Author. He has hundreds of authors writing on his blog and wants the ability to hide all Posts under the Posts section of the admin panel ...
0
votes
1answer
376 views

Help on conditional statement to accompany wp_insert_post function please?

I'm trying to programatically insert posts from an external MySQL database as posts on my wordpress blog, I've got something that works, but there is no way of wordpress checking to see if the post ...
0
votes
1answer
903 views

404 error after publishing a post

My issue is prety much what the title indicates. Whenever I publish a new post, everything works fine - the post is listed in my WP dashboard and all looks good. However, if I try to 'view post' to ...
4
votes
2answers
683 views

How can I make it so the Add New Post page has Visibility set to Private by default?

I'm trying to create a plugin that alters the Add New Post page so the Visibility field says "Private" by default: Status: Draft Visibility: **Private** Publish immediately [Publish] ...as opposed ...
0
votes
1answer
811 views

Redirecting to a post based on a GET parameter and a custom field

I'm trying to redirect to a specific post based on a GET parameter. The value of the GET parameter is the value of a specific custom field. For example: http://somedomain.com/wordpress/?fid=xyzzy ...
3
votes
1answer
630 views

How do I convert a mathematical Microsoft Word document to a WordPress blog post?

I have a Microsoft Word document which I would like to convert to WordPress. The document is in Hebrew. It contains mathematical equations generated with MathType. It also contains images. Just ...
1
vote
1answer
279 views

Phantom 302 status code when sending a POST requests on pages

I really hope I've got a simple issue in front of me here, as it's sort of driving me up a wall. Short story: submitting a simple form on the front end of the site results in a 302 Found redirect, ...
0
votes
1answer
173 views

Possible?! A contextually titled back link

The dilema: I have a category menu in sidebar.php that highlights the category one is in. I need to keep that highlight ON when one dives into a post of that category. The blogs posts are usually ...
2
votes
2answers
323 views

Post type hierarchy

I am looking to create two custom post types, one of which is a child of the other. Let's call them Authors and Books for simplicity. Authors should be a top level URL and the landing page for them ...
3
votes
2answers
9k views

Determine if page is the Posts Page

On the Reading Settings page you can set a "Front Page" and a "Posts Page". You can check whether the current page is_front_page(); Is there a similar function for the "Posts Page". I have noticed ...
5
votes
4answers
606 views

How does one reduce the number of stored revisions?

How does one reduce the number of stored revision (e.g. 5 max) for post types that support revisions?
0
votes
1answer
596 views

Custom post type and body_class: Remove “blog” class

I am using body_class(); to style different sections of a wordpress site by their body class. Page styles descend from .page-template, blog styles descend from .single-post and/or .blog etc. I have ...
2
votes
3answers
799 views

Automatically create pages in a post based on number of words

I need a method to automatically create pages (using <!--nextpage-->) in posts based on number of words. For example... A post containing 1200 words should be broken down into 6 pages with ...
2
votes
2answers
742 views

display list of posts/pages in admin edit post/page

Basically, I thinking how i could get a mini wp-admin/edit.php view inside the wp-admin/post.php page. does this even make sense to anyone?
2
votes
2answers
2k views

Clear cache when a post is submitted

I have a question. How can I clear the cache when a post is submitted ? Actually, I need to clear two speficied pages which display these articles ? By default, I have noticed the index.php is ...
1
vote
1answer
1k views

Can't get the_content of the parent page from its single post?

This is a page that list posts witht he category Content (CDs): <div id="tagline"> <div class="container"> <?php // Run main loop (The Loop). ?> <?php if ( ...
1
vote
3answers
2k views

Get Next / Prev 3 Posts in Relation to Current Post

I have 7 posts, like this: 1 2 3 4 - this is the current post 5 6 7 As noted, number four is the current post being displayed. I need to create a query that will allow me to display the previous 3 ...
0
votes
3answers
682 views

Manage Private Posts

I have a public blog but would like to have a section just for my own private notes? What is the easiest way to do this? Is there a way to make an entire category of post private?
0
votes
1answer
760 views

What file is the standard frontpage that lists all the posts?

I want to edit something in my theme but i can't find the file that lists all the blogposts on the homepage. In the 'Reading' settings i have: Front page displays - your latests posts as the chosen ...
0
votes
1answer
40 views

Is there a way of posting or inserting content directly to the database (without entering the wp-admin)?

Is there a way of for instance, insert a post and assign a category to it, without accessing Wordpress' back-end?
0
votes
1answer
828 views

get parent fields title, content excerpt etc

can't seem to get this but how can i load info in a child's page from its parent? ie, i'm looking at an attachment and i can get the parents ID easy enough but not sure how to get the parents title, ...
3
votes
4answers
1k views

Prevent Authors from viewing each others Posts

I am setting up a site where there will be multiple users as Author, the owner doesn't want the authors to be able to view each others posts, since there are some meta fields with information he'd ...
0
votes
2answers
1k views

How to implement a WordPress comments function?

I have loop, wich create news feed, it looks like: (part of news template) News.php <div id="content"> <div class="scrollArea"> <?php ...
2
votes
2answers
633 views

Use Cron to modify posts via sql

Hi to all I need to run this twice a day: UPDATE wp_posts SET post_content = REPLACE ( post_content, '[img]', '<img src="' ); UPDATE wp_posts SET post_content = REPLACE ( post_content, '[IMG]', ...
1
vote
1answer
5k views

How to create a load more post entries like Twitter?

Hey guys, last days i have been trying to figure out how to do that. As read on http://net.tutsplus.com/tutorials/javascript-ajax/create-a-twitter-like-load-more-widget/ but inside wordpress. And i ...
3
votes
2answers
133 views

Is there any way of copy/pasting, duplicating, or auto-generating posts for fast testing?

I always find myself creating posts every time to test layout or design. For example, I create stuff like: Content 1 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam ...
0
votes
1answer
202 views

Post navigation using date

On my site: www.finmand.dk/almastofa/nyheder (a danish site) I have used this code to navigate between the post: <?php foreach(get_the_category() as $category) { $thecat = $category->cat_ID; } ...
1
vote
1answer
2k views

Create cron job without a plugin?

Basically I wrote a function that lets me change the post status to draft depending of a field in the postmeta table: /** * Remove ads if they have been sold for over 5 days */ function ...
0
votes
2answers
6k views

How to get the date of a post in WordPress, so I could use it in a script?

I'm very new to WordPress. I need to get the date of a post and compare that date to a specific date (04/01/2011), so add some banners and stuff to every post created "after" that pivot date. But the ...