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
2answers
73 views

Define a name to the posts slug

I would like to use the url http://site.com/post/title-of-the-post for my posts and I've saw in my admin page I have the current url http://site.com/%slug%/title-of-the-post obiouvsly incorrect. How ...
5
votes
4answers
1k views

How can you change the 'Insert into Post' title in the media button?

Actualy the question says it all. I integrated a media upload box to my admin page and a button with the text 'Insert into post' makes no sense. I rather like to change it to something like 'Use this ...
0
votes
2answers
2k views

show posts under subcategory only when in that subcategory

I have a list of subcategories in a sidebar (children of top level category) and I also get a list of posts underneath each category. I only want to show those posts when we are under that subcategory ...
1
vote
2answers
630 views

Adding a Nav menu to post admin

i want insert a dropdown menu with list of menus, that i've created in nav-menu.php, to post-admin... For example, when i'm creating a post, i want insert a menu "Paul" in a post (only a post that i ...
0
votes
3answers
602 views

hiding permalink in admin if the user is subscriber

I don't want to show the permalink if the user is subscriber. Can anyone help me to achieve that? PS: I'm talking about the permalink which appears below title while creating new post. PPS: I ...
0
votes
1answer
188 views

Run query_posts if SESSION is empty?

I am having trouble running query_posts when my page loads for the first time, i.e Session is empty. When the page loads for the first time and the SESSION is empty, the following code runs: ...
0
votes
3answers
50 views

Plugins used on this wp page

I am currently setting up a wordpress page and am looking for suitable plugins. The style of the questions posted in the "top questions" section is actually what I need. Also the voting widget in a ...
0
votes
2answers
1k views

How to call Wordpress First Image Post or else Attached Image or Default

Can anyone help me develop a wordpress script that [IF] will get first image post and if it doesn't exist it will [ELSE] get first attached (uploaded) image. Theoretically: [IF exists] <img ...
2
votes
1answer
93 views

All my inserted images gets a link to the full image even if it is already full size image

So when I create a new post and I upload an image onto the my server. Normally depending on the size of the image you can select small, medium, large image to place inside the post. On other sites ...
0
votes
2answers
589 views

latest post showing up twice on posts page

Can someone please help me alter my coding to eliminate my problem? I am using this line before the loop: <?php query_posts('cat=3&showposts='.get_option('posts_per_page')); ?> for ...
1
vote
1answer
372 views

1 column admin screen options - move submitdiv to bottom

I'm using this code. add_filter('meta-box-order_post','one_column_for_all'); function one_column_for_all($result, $option, $user){ $result['normal'] = ...
0
votes
1answer
330 views

Problem with ajax plugin for refreshing posts

Im using a cool plugin called "wp ajax random posts". It basically lets me call a function into a template that can auto refresh a loop of posts. It works great until I tried to change the loop ...
1
vote
1answer
6k views

How to show related posts by category

In my gallery site i want to show other pictures under the current picture (in single post). I seen more codes but it i asks to specify the category, but i dont want want specify the category manually ...
0
votes
3answers
163 views

How do I include the category next to the title of a post?

On the main page in WordPress all I want is the category to come before the title of the article posted. So for example if it's a Review, I'd like the article name to be Review: Super 8. Okay so if ...
1
vote
1answer
121 views

WordPress is replacing double minus signs in Post Title, how to disable it?

sometimes i have Post Titles that contains 2 minus signs side by side (--) but wordpress is always removing one of the minus sign. Looks like: My--Text into My-Text any idea how to disable it? ...
2
votes
1answer
66 views

What Defines What Category A Post Picks (if in multiple)

If I have a post in multiple categories, what defines what category shows up in the URL? Assuming I have permalinks setup as /%category%/%postname% is it the ID or the name?
-2
votes
3answers
512 views

Post data returning null

I'm writing code from within a plugin and I'm attempting to create a two-part registration form. I'm using POST to determine if the first part of the form was submitted or not. Unfortunately, though, ...
0
votes
1answer
2k views

Shortcode to display the latest news article within a page

Could someone help me write a custom shortcode to simply display the latest post anywhere in Wordpress? I've seen a lot of ways how to do this in pure PHP in a custom page template, but if I try to ...
0
votes
1answer
273 views

Relative number of post in category

For a post x in a category y, how can the following output be achieved: Post x is the nth out of m posts in the category y. where m is the total number of posts in the category, and n is the ...
3
votes
5answers
11k views

How to get all posts related to particular category name?

I am developing one project and in this project i have to display all the posts related to particular category name. I have searched a lot but i haven't got any idea to implement this. How can i do ...
0
votes
1answer
931 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
1k 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
1k 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
129 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
390 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
89 views

Which plugin will let me relate one post to another?

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
124 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
265 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
800 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
204 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
490 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
772 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
298 views

Contact form 7 post loop

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
2k 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
479 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
161 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
136 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
570 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
202 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
527 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
94 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?
0
votes
2answers
641 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
1k 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
316 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
300 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
218 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
73 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
34 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
3k 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
2answers
3k 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 ...