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

Get the user type of an author

I'm working on a site and I need to get the type of user the author is so I can mark it. The idea is that if an Admin level user post something it has a [ADMIN] tag or something next to their name. I ...
0
votes
2answers
1k views

Automaticly add slug to posts

I'm using a us/news/%postname%/ structure for my permalinks. This works great for regular posts. However, I have a few different custom post types, and I don't want the us/news part in their slug. ...
0
votes
1answer
555 views

Trying to put an array into 'post__in' => array() query not working

Slight problem, I have the following code: $purchaseprodid = $_GET['ids']; $args = array( 'post_type' => 'prizes', 'post__in' => array($purchaseprodid) ...
2
votes
2answers
769 views

How to display different single post template based on author?

My current singlepost.php makes use of the following if conditions and renders the appropriate template. <?php $post = $wp_query->post; if ( in_category('4') || in_category('59') ) { ...
0
votes
1answer
405 views

Post custom permalink results in 404 for archive page

I have set the following custom permalink structure (for my blog): /news/%postname% When I browse to /news I was expecting for the archive.php template to be served up, unfortunately, I'm presented ...
-1
votes
1answer
1k views

How to show content without excerpt?

Post contains: excerpt, read more, content. When browsing category page we see post's excerpt with read more link. When clicking read more we see post's excerpt + content. How to avoid showing ...
0
votes
1answer
78 views

Display ONLY Latest Post From Several Categories

I have searched for this solution on here and was not able to find one that worked for me so I apologize if this seems like a redundant question. I have several categories that I want to display ONLY ...
0
votes
1answer
292 views

Custom post type slideshow background images to insert in a plugin

I have a slideshow which is populated with background images from a custom post type. Here's my code: <?php // start the loop foreach($slider_posts as $post) : setup_postdata($post); // get ...
1
vote
2answers
501 views

check if wordpress is updating or publishing a post

Very simple question: How can I check when wp is doing an update or a publishing to a post? Because I have to check a postmeta value which could be only true if the post is actually being published ...
0
votes
1answer
136 views

When viewing single parent post, display list of children

I have a Custom Post Type called glossary. I set up parent posts called "A", "B", etc. The glossary terms themselves are then set with the appropriate initial as their parent post. So, for example, ...
1
vote
2answers
261 views

Wordpress theme ajax have_posts()

My goal here is to load the blogroll into my theme via ajax. But all that I can get as response is 0 (if I omit the die() line, else I get a blank response). Here is my code: js ajax: $.ajax({ ...
2
votes
2answers
263 views

Autoremove empty custom fields

The code you see below only works sometimes. I'm no pro on PHP so can anyone help me improve this code? I use it in my functions-php file in my wordpress mu setup. The biggest problem is that it wont ...
0
votes
1answer
31 views

Organization of time insensitive content

I'm planning to use WordPress to maintain and publish a role-playing system. Is there a best practice for managing content in WordPress that isn't time sensitive? Should I use pages and make short ...
0
votes
1answer
161 views

Plugin for TinyMCE to create reference to other posts

Is there any plugin that would allow me to easily insert reference to another post for TinyMCE? I want to be able to reference another post by permalink and the link text to be the title of the post. ...
0
votes
1answer
80 views

Single post page breaks when post is more than 30,000 words

When my post contains approximately more than 30,000 words then the page only shows the post title and no text at all. The same happens with shared host and with WP running on my PC. Any ideas? Any ...
1
vote
1answer
272 views

Custom Post Status Posts viewable to the public

I am using EditFlow's "custom status" feature for an event calendar plugin I am writing for a client. I've created a status called "previous events", when a date has happened the events post_status ...
0
votes
1answer
35 views

Attaching global meta to custom fields

I post music videos on my site and I add the artist name as a custom field to each post. I want to associate certain meta with that artist name so I dont have to enter it everytime like the artists ...
0
votes
1answer
133 views

Trim posts from WP-Query?

I wish to show in my front page a number of posts determined by the following criteria: show all posts from current month (actually from the month corresponding to the most recent post) ; but if that ...
0
votes
3answers
320 views

Page and post loop same template

I try to make template that has Page content in the main div but in the same page there is category base post loop whit title, day, content and read more link. What i had now is like this <?php ...
0
votes
1answer
511 views

Wordpress wp_editor to post and edit

I browsed through all the topics here on stackexchange to find an answer to my problem but couldn't quite get there. This snippet enables you to post from the frontend, but how about editing. Each ...
0
votes
1answer
552 views

Front end post submission form with duplicate type fields

Here is the simple front end post submission form code <?php $postTitle = $_POST['post_title']; $post = $_POST['post']; $submit = $_POST['submit']; if(isset($submit)){ global $user_ID; ...
2
votes
3answers
317 views

Must permalinks always point to single post pages?

Suppose that I have a blog with few posts per month, and no comments, and I don't want to show posts in single post pages, but always "in context" (say, together with the posts in its month - or ...
3
votes
1answer
113 views

Utilising posts with various post types & categories?

I need some advice on how to arrange my posts to make it user friendly in the back end. I've created lot's of websites using pages but this is the first time that the post area is quite comprehensive. ...
0
votes
1answer
1k views

How to display Post title By ID and its Thumb Contents

Hello i'm trying to display a Post Title by its ID and its thumb content, I have I code but this displays everything, all I want is post title,its category and a short content of that post. I have a ...
0
votes
1answer
189 views

Using Postmash plugin in Wordpress 3.3.1

I want to be able to reorder posts and have them listed in this custom order from the category page. I've downloaded and activated the Postmash plugin but am having problems with installation. I've ...
1
vote
1answer
223 views

Category Foreach keeps looping?

I'm using the following code to acquire all the child categories of a category and displaying the child posts of the child categories. <?php $cats = get_categories( 'child_of='.get_query_var( ...
3
votes
0answers
359 views

Plugin for sortable posts in grid [closed]

I'm looking for a plugin that will emulate this current php page: Each flower to be a post with more info. The dates to be sortable Current blooming flowers to be featured in the widget sidebar ...
0
votes
1answer
75 views

Don't publish/update a post when a plugin finds errors in custom fields

I have a question about how to stop processing a post when a plugin(server side) finds errors on custom fields. Basically I developed a plugin which adds and process some custom fields in the edit ...
-1
votes
1answer
130 views

Distribute post content through several divs [closed]

I would like to distribute the content in a post through several divs. Much like a word processor distributes content through pages. Any ideas?
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
633 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
610 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
592 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
375 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
331 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
7k 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
165 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
517 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
275 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
935 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 ...