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)

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
146 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
300 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
182 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
506 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
220 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 ...
2
votes
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
294 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
85 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
303 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
380 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
1k 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 ...
5
votes
3answers
765 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
921 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
711 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 ...
2
votes
2answers
320 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
327 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 ...
6
votes
2answers
11k 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
697 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
664 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
915 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
770 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
3k views

Clear cache when a post is submitted [closed]

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 ( ...
2
votes
4answers
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
716 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
995 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
41 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
894 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
2k 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
666 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
136 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
210 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 ...
1
vote
2answers
7k 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 ...
1
vote
1answer
1k views

str_replace the_title(); blues

I have a dilemma, well a new blog which im developing and a few of the posts titles are like this 'Tutorial: Build your first App' or 'Tutorial: Start your business with xensuithia' I have a page ...
1
vote
1answer
1k views

Disable Jquery UI post tabs

Hey all, I'm using Jquery UI tabs with the WordPress Post Tabs plugin and it works like a charm. However, I'd like to auto disable or hide tabs that do not have any data. I've worked with Jquery quite ...
2
votes
2answers
2k views

Frontend Post Form Validation

OK, there have been several posts on here about frontend posting forms. I've read them all, which got me to where I am. Now every form I come across has some form of validation which seems to check ...
4
votes
2answers
1k views

Possible to change the URL for the regular post type without affecting the URL of other custom post types?

The Dilemma I have a few custom post types: Portfolio Items Testimonials FAQs The URL structures for these custom post types are: mysite.com/portfolio/name-of-custom-post ...
1
vote
1answer
653 views

Post Type Label Name

i've just created a new post type. It's name is Academias so the first menu option is Academias as well. But I would like to change it to something like See All Academias (just an example), is that ...
0
votes
1answer
362 views

Error while excluding a post from another loop (using its ID)

I'm trying to get the ID of a post in the first loop (using <?php $postid = get_the_ID(); ?> ) and use it in a variable ($postid) to exclude that very post from a second loop (using ...
1
vote
2answers
2k views

Wordpress Orderby Numeric Value Not Working

I am trying to get all products from the wpsc-product post type and then display them by a custom meta field called release_date_year. However, it doesn't appear to be ordering my posts by this custom ...
0
votes
3answers
205 views

Changing permalink of WordPress

I am pretty new to this and hence facing a bit of a problem. Currently I am designing a website on my localhost using WordPress. I noticed that the permalink structure wasn't very appealing in the ...
0
votes
1answer
163 views

Is it possible to give the user the chance to select between two single template files to use in a post?

Basically, I want to allow the user to select which template files he or she wants to use in a post: single-asc.php: <?php $custom_posts = new WP_Query(); ?> <?php ...
2
votes
1answer
3k views

Display post number not post ID number

I am wanting to display the number order of a post. I tried using<?php the_ID(); ?> but this just displays the post ID and doesn't seem to do go in sequential order due to post revisions and ...