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
1k views

Problems with Wordpress in subfolder, posts show a blank page

I have wordpress installed in a subfolder and using permalinks but I'm getting a blank page when I try to access to any post. This is what I have in the root folder .htaccess: RewriteEngine On ...
1
vote
2answers
2k views

Is there a way to backdate posts?

Is there a way to backdate posts on WordPress? The reason is that I am migrating content over from another site and want to keep their original publishing dates. Edit The content is being ...
0
votes
3answers
2k views

How set template for “custom post type” individual post

For example, I have post named "My book number 1", that is in "Book" custom post type group. And is another post named "My book number 2", that is too in "Book" custom post type. Question: How I can ...
0
votes
1answer
179 views

Recent posts script mess up blog posts

I use this script to display recent posts: <ul> <?php query_posts('showposts=5'); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ...
1
vote
1answer
541 views

Allow non-logged in users to see a future post after clicking on a list of future posts

I have been able to list out pages that are set for future in a custom template like this: ...
0
votes
3answers
120 views

Which plugin will let me relate one post to another? [closed]

Here is what I am trying to do: I am trying to allow users to create a post under 'category-A'. Then Create a post under 'category-B' which is linked to the post under 'category-A' For example: ...
0
votes
1answer
139 views

How to make blog posts have their own urls?

When I post a blog post, the blog post doesn't appear with a separate url -- it just appears under http://richardclunan.com/blog and there's no button to edit the url when I'm on the Edit Post page. ...
0
votes
1answer
313 views

How to make a posts page display only intros of posts?

My blog, the Posts page here: http://richardclunan.com/blog - displays full blog posts. I'd like it to display only the intros to the posts, and users click into a post to read the full post -- ...
1
vote
3answers
1k views

Redirection not working in this front end post submission form?

I found this tutorial to create a front end post submission form: It doesn't matter what I type on wp_redirect( 'http://www.google.com' ); I don't get redirected to anywhere. Just the same page but ...
0
votes
1answer
243 views

Can't assign another category other than Uncategorized int he following front end post submission form?

I'm using this front end post submission form that I took from this question: <?php $postTitle = $_POST['post_title']; $post = $_POST['post']; $submit = $_POST['submit']; $category = ...
1
vote
2answers
677 views

get_post_type on post.php

How can I get the post_type while on the post.php page? I'm working on a plugin that lets users create a new post type. Then in the new post type, a meta box will be added with some options. The meta ...
0
votes
2answers
1k views

wp_list_categories() Exclude All Categories Except One

Is there a way to exclude all categories except one? I want to show a category and it's sub-categories as a dropdown menu, but the admin might add more subcategories to it so I don't want to limit ...
0
votes
1answer
449 views

Contact form 7 post loop [closed]

I am using contact form 7. It says to use the following [contact-form-7 id="23" title="Contact form 1"] In my post or page, I have placed it in my post. Now I am using this code to grab the post a ...
0
votes
1answer
3k views

Filter Posts By Tag

I'm trying to filter my posts by category, then further by city. The only way I can think of filter by city is if the admin adds the city to the listed tags and then filtering from there via switch ...
0
votes
1answer
641 views

wordpress radio button on single post page

I have two radio buttons that enable/disable the particular category posts from my wordpress homepage, I have also added these two buttons on single.php, this is what I'v done, If the post belong ...
1
vote
1answer
177 views

Which post does a taxonomy term belongs to?

I’m having a page which displays all custom taxonomy terms for a particular type which I get from the URL. I use this code to retrieve all the terms: $args = array( 'post_type' => ...
1
vote
1answer
148 views

How to display sorted posts in the 'All Posts' page

I've been following this tutorial to build a sorting page for my posts: http://soulsizzle.com/jquery/create-an-ajax-sorter-for-wordpress-custom-post-types/ The sorting works fine, but the new sorting ...
0
votes
2answers
933 views

How to hook a function only when I need to delete permanently a post?

I need to hook a function only when I delete permanently a post from the database, I've tried the 'before_delete_post' hook, however, it's called both when it's trashed and permanently deleted. The ...
1
vote
1answer
278 views

Is there an easy way to flag posts in the admin area?

I'm looking for a plugin, or maybe a bit of code (even another example I can look at that does something similar)... I'd like to be able to have certain users 'flag' posts, such that when something ...
1
vote
1answer
973 views

Wordpress list posts from sub categories

has anyone an ideea how can you do something like this: So if the user is in a category, let's say Mainand this categories has some subcategories and I want to list them and also list the posts, ...
0
votes
1answer
112 views

Get permalink of post that an attachment is linked to

How do I get the permalink of a post that an attachment image is attached to?
1
vote
2answers
1k views

Submitting POST data to a custom page template triggers a 404, why?

I've got a simple custom page template with a form on it. This page can process the form itself, so the entered data gets submitted there as well, using POST. Submitting the form, however, results in ...
1
vote
4answers
3k views

$post->ID and the_id() always return the wrong value

I have a site where I display the same exact footer on every page. There is one exception, though. On one certain page I need to change one small part of the footer. I figure the simplest way to do ...
0
votes
2answers
475 views

Get attachments only for this post

I have the following code: <?php while (have_posts()) : the_post(); if(get_the_title() == 'Archive') query_posts('posts_per_page=1&cat=1'); $category ...
-1
votes
1answer
448 views

How can I get on the same row two post of different categories?

Let me explain better, I have two categories and I want to show a page with two columns one for each category, after this I like to show in the same row each post of each category on each column, just ...
0
votes
1answer
294 views

How to make search for the custom post type?

i tried to figure this out but i can't until know i have new custom post type of questions and i have other post types also like job listing, resumes etc what i want here to make search for the ...
0
votes
1answer
75 views

How can I get posts from 9/13/11 to today with SQL? [closed]

I have been working with a client to redesign his site and we are at the stage where we are going live, except I'm running into a little problem. Time is of the essence, as the deadline is mid-day ...
0
votes
1answer
35 views

Regarding Posts

I have several questions How to limit characters in the post? How to ensure every posting require images upload? That's all, appreciate if anyone can help..
0
votes
2answers
5k views

Load Next WordPress Posts With AJAX?

I found an amazing plugin that loads the next posts with Ajax. http://www.problogdesign.com/wordpress/load-next-wordpress-posts-with-ajax However it doesn't work with custom post types. The code ...
1
vote
3answers
5k views

Number of posts per page setting is not working?

OK, here's my prob. I have static homepage and a separate posts page on my wordpress site. I have defined the two in the admin panel. Now, I have also set the max number of posts to be displayed to ...
1
vote
2answers
67 views

WordPress blog or WordPress website

I have created a WordPress blog. http://www.lifegetsdigital.com.wordpress.com I am planning to eventually move all the posts to a website of my own from the free WordPress service. Is it good move ...
0
votes
2answers
534 views

get post custom value

I have a portfolio custom post type with a text field for a site link, I need to echo that link in the template page. What i have so far is this: <?php $site= ...
3
votes
2answers
741 views

Limit on the max number of words per post?

I wish to insert large posts in my site, close to 300,000 words. I removed all bold, italics, footnotes etc. and I paste text in HTML tab of post admin editor. My posts are truncated to 75656 words. ...
0
votes
1answer
294 views

Post type cloud like tag cloud?

Anyone know if it's possible to create something similar to the wordpress built in tag cloud (wp_tag_cloud) but instead of displaying tags, display custom post types? Thanks
0
votes
1answer
60 views

Jumbled writing under a post

> > The websites we have are Wordpress ones. I add new things on okay but the issue is a glitch that has always been on it. If you look on this page after the post the writing underneath ...
1
vote
1answer
540 views

Comments are assigned to wrong or related post

This issue is driving me nuts since weeks :(( Please help me. The comments are assigned to related posts and are visible on other posts also. For ex. The page redirects to post "Sports" when I post ...
1
vote
1answer
1k views

Wordpress Delete hook with wp_delete_post function?

I have this action/hook: add_action( 'before_delete_post', 'my_delete_function' ); function my_delete_function($post_id) { global $wpdb; $achievement = get_the_category($post_id); $h = ...
0
votes
2answers
1k views

Get post id in wordpress action?

I have this code add_action( 'delete_post', 'my_delete_function' ); function my_delete_function() { global $wpdb; $wpdb->query(" DELETE FROM wp_votes WHERE post=".$thePostID." ;); } ...
0
votes
1answer
93 views

Run a function when post is deleted?

Is it possible to run a function every time a post is deleted. The function has to be run when the post is deleted from the admin or by the wp_delete_post() function.
0
votes
1answer
99 views

Multi Quick Edit - Possible Or Impossible?

I'm just wondering if this is possible because the variation names listed in the products have text which is not really necessary even though I have deleted the category, its still appearing. Hope you ...
0
votes
1answer
119 views

Closest post to a date

So I've got a wordpress blog I've been posting to once a week for a couple of years - I'd like to be able to press a button, or use a bookmarklet, or edit the url in such a way that I see that I see ...
0
votes
1answer
378 views

How To Use Custom Fields With .mp3 Links

Hope it doesn't seem to shallow of a question, but I've searched the web as much as I've could and have not found anything similar yet. :: Creating a regular post; How can I place a .mp3 link in a ...
2
votes
2answers
227 views

Tons of Twitter rows in my database

I have 264,307 "http" (post_type = http) rows in my wp_posts table. 99% of those have them have this post_title: GET http://twitter.com/statuses/user_timeline/@xcentric.json?count=100 and "error" ...
0
votes
1answer
279 views

Error establishing a database connection

I was in the midst deleting trash file and the internet connection is becoming really slow. When I clicked the Products tab in the wp-admin it says that: "Error establishing a database connection", ...
0
votes
1answer
34 views

How to create several Post pages

I have a question regarding the Posts.. When I create a new Post it will display on the Home page and not for ex. in the photogallery page where I want to have it... Is there any way how to define ...
1
vote
2answers
1k views

Add Word Limit to Posts

Is there a way to limit the number of words per post through the the_content() function or something similar?
0
votes
3answers
2k views

Direct some posts to only appear on a specific page

I have a blog at JonCrowell.org. When I add a new post, it appears on the home page. I have created a new page called "Technical Notes". I would like to be able to choose whether a new post that I ...
2
votes
2answers
3k views

Custom permalink structure only for default posts

Does anybody know how to modify the url struct only for the single post page? When I go to a post page, the url should look like: example.com/xxx/my-post. All other urls (with the exception of the ...
0
votes
1answer
428 views

If/Else child list for Custom Post Type single template within loop?

I'm trying to add a feature to my 'Services' custom post type single template that displays one thing if the post type has one or more child post types and another thing if it doesn't. So far I've ...
3
votes
1answer
4k views

How does filter the_posts work?

I don't want to display post with empty body / post_content on my home page. So I added below code to my function.php. It detects post with empty body but it still display them. I expected that if I ...