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

How do I show posts from another wordpress installation?

I have looked around and I cannot seem to find an answer to this question. There are similar questions/answers but none I have seen managed to answer this question, so I am sorry in advanced if I have ...
2
votes
1answer
30 views

Set attached to state

In the media library every attachment post has an "Attached to" column. I've developed a plugin that adds author profile and a facebook like banner image. I now discovered that the attachment posts, ...
0
votes
1answer
174 views

Get post category as a separate string and url

I need to figure out how to get post category as a string and link, both separate from each other. So the return would be something like: Uncategorized http://link-to-the-category.com however both ...
0
votes
1answer
88 views

How can I create a menu items from meta box based on users input

I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
0
votes
1answer
26 views

Finding a post's slug

I'm using wp_query() to get custom posts from the database. I want to list these out as links to the entries, so I'm thinking I could use the slugs. Sadly these don't seem to be included in the ...
0
votes
1answer
592 views

Get post meta retrieving wrong value

I created a custom meta box with a textbox where the user can enter a custom value in as an additional identification tag. I thought I had it right but when I try to retrieve the value it is giving me ...
0
votes
0answers
39 views

Can I set a CPT title field to a dropdown with preset options if user is of a given type?

I am using the WP Property plugin so I have a Property CPT. I also have building managers who will be creating these new CPT posts. Is it possible to set the post title field to be a dropdown field ...
3
votes
2answers
618 views

How can I add dropdown widget/box to admin post page?

I am trying to figure out how to add a dropdown widget to the post page. The reason I ask is because I would like to be able to have a few different post classes that the user can select while making ...
1
vote
1answer
619 views

How to display following posts titles in separate div's on a separate webpage

Intro: I have a webpage that is not part of wordpress. I have incorporated the wp blog posts, by putting The Loop in the page's code. This works, it displays the current posts and their following ...
0
votes
1answer
346 views

Count user posts and store the number for later use

I want to count author posts and store this number for later use even if some of the posts have been deleted in the meantime. $rows = $wpdb->get_results( $wpdb->prepare( "SELECT post_status, ...
0
votes
1answer
204 views

Adding a custom post type meta field to rss

So I added my videos custom post type to my rss feed via this code. //Add videos custom post type function myfeed_request($qv) { if (isset($qv['feed']) && !isset($qv['post_type'])) ...
0
votes
1answer
86 views

Capturing POST data

I am trying to modify the Member Status Plugin so that the status are based on the data saved on a custom database table. Basically I wanted to change the administration menu with a form that can ...
0
votes
3answers
441 views

WP 3.5.1 password protected not working for post

After adding right password fornt side wp, post not open and it's say Not Found Apologies, but the page you requested could not be found. Perhaps searching will help. how to solve this?
0
votes
1answer
90 views

Get only X number of categories

How can i get only x number of categories using the_category. I triesd a few thing but none worked. I dont want to use get_the_category
0
votes
1answer
514 views

Change Post Status From Front End

I am using the code in a page below to let users delete their posts from the front in. I have wp-admin totally blocked off to site users. What i want to do is when they click the delete button the ...
1
vote
0answers
93 views

Wordpress capabilities on pending post status

I have user with contributor user role. In default if you publish article as contributor you can only view it and you can't delete or edit it. But when you submit new post for review, you can do all ...
0
votes
0answers
164 views

Special Query: Title, Terms, Content - %LIKE%

I'm working on a them theme that is search-heavy, and my users are putting huge priority on an improved search function. I think I will have to use a special direct query to search these things: ...
0
votes
0answers
84 views

TCPDF and permalinks

I am currently using a post to pdf plugin 'Hacklog down as pdf' which works ok. I've used it before in a current working environment. It suddenly stopped working but I have found out that when ...
0
votes
1answer
148 views

Is that possible put a whole POST in a list ,<li>

I want a whole post content into a list. The result i want like this: <ul> <li>the fist Post </li> <li>the second Post </li> <li>the third Post </li> ...
0
votes
2answers
82 views

How can i show only 30% of the “the_content(”More…“)”?

I'm trying to make a page that has all the posts in it and shows 30% or less of the content of the post. So I'm editing a page template and I can't figure out how to show only 30% of the content. I'm ...
2
votes
1answer
246 views

Restrict access to post if it is currently being edited

On a platform with many Editors, the problem that I am experiencing is that two editors proofread the same post simultaneously (and disregarding the warning notice about someone else currently editing ...
0
votes
1answer
80 views

Cant retrieve $_POST inside page, just header

Here is the full code: http://codepad.org/BpqQ3Xm0 Line 113, I am sending $_POST["popust"] ; And I use it to compare value at the top -line 33. But if I want to echo it, print_r, var_dump, inside ...
0
votes
1answer
6k views

Open WordPress Posts in Bootstrap Modal

I am looking for some assistance in opening WordPress posts in the Bootstrap Modal. Right now I have a home page with a grid that pull posts. I have it setup so that each post is in a square box and ...
0
votes
1answer
108 views

What is wrong with this wp_query?

I need to query posts by two meta fields and the wo_query I'm doing it with is returning nothing. Obviously, it's broken. Can somebody tell me what I'm doing wrong? $args = array( ...
0
votes
1answer
105 views

delete_post hook - deleting multiple items

I am using delete_post hook. add_action('delete_post', array($this, 'remove_audio_file')); // delete post event (Using it inside the class). When I delete a single post I have no problem ...
0
votes
1answer
67 views

unused post IDs

Recently I installed plugin called Delete-Revision and noticed that every post has registered few post IDs. I usually use save drafts and update post a few times when I write a post. Here's the ...
-1
votes
1answer
102 views

query_post or single-[cpt].php?

php query_posts( 'post_type=listing'); Or single-listing.php? According to my reading I have presumed that to display a custom post type all I need to do is copy my single.php and rename it ...
0
votes
1answer
265 views

Problem with articles feed: XML Parsing Error: XML or text declaration not at start of entity

I have a problem with WordPress articles feed. I have discover it analyzing what googlebot is scanning on my site and I disconvered that it is scanning only the feed and not the articles... So I have ...
1
vote
1answer
992 views

WP_Query with ajax handler returns the same posts

I have a problem that is getting me bald atm. I have a ajax call that handles a loop that handles some querys and returns posts for me. So far so good, but the first time the user sees the page we ...
0
votes
1answer
29 views

How can I count articles retrieved by tags

how can i get posts retrieved by tags, I want to count them. The code i want to use in tabs. Ex: Movies(3) , Articles(15) Movies and Articles are Tabs. I know how to retrieve the count of posts ...
0
votes
1answer
104 views

Query for first 3 posts to change the look and feel

Is there a way to query for the first three recent posts and then change how they display on the front page? I want the first three posts of my blog to show differently than the rest of them i.e. ...
0
votes
1answer
733 views

Show the title of the latest post by author

I have the following function which I use to show the author name,author avatar and the author biography in a div. I need to show the title of the latest post by the author along with this. Can anyone ...
8
votes
3answers
2k views

How to change the case of all post titles to “Title Case”

I am helping my father with his WordPress website. It has over 1,700 posts with TITLES IN UPPERCASE. We'd like to change these to "Title Case" in the database (possibly using this PHP script). The ...
0
votes
1answer
303 views

Import custom database into wp and keep the post id

Hello guys I have a project where I need to import an old database to wp but I need a solution to keep the old id's as posts id so i can make the links look the same as the old website in this way we ...
4
votes
3answers
713 views

Dynamically add id to heading tags

How do I add an id attribute dynamically to every heading tag on a wordpress website using php? I wanted to make it so that for every heading tag (h1, h2, h3, h4, h5, h6) I have a unique id attached ...
1
vote
0answers
654 views

Strange problems when I try to insert HTML\XML code snippet in my posts

I am experiencing some problems while trying to insert XML code snippet into my WordPress articles. I have just read this tutorial: http://codex.wordpress.org/Writing_Code_in_Your_Posts I am using ...
0
votes
3answers
576 views

Retrieve a specific post's featured image and show on a different page

What I'm simply trying to do is grab the featured image thumbnail image from a specified post/page and display that image on any other page somewhere. So for instance, if it's a single post, use the ...
0
votes
1answer
133 views

I need to create a page or post hierarchy

I am currently stuck and I need some advice ASAP. I am making a site for a client on which they need to have a sort of hierarchy like this Carriers (Main Category or page) -Level 1 -Level 2 ...
0
votes
2answers
589 views

Odd/even class on article tag

I am using the article tag with the following code: <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix span4 '); ?> role="article"> </article> and I would like ...
2
votes
3answers
665 views

Can I hide a specific post from latest posts page?

Let's say that I have a post that I only want to be shown in the page of the category that it belongs to. The problem is that this post is also visible in the latest posts page. Is there a way to ...
0
votes
2answers
279 views

Hooking into the post editing screen for an existing page only

I am working on a Wordpress theme that hides the default WYSIWYG editor and replaces it with a custom module system which is fine and dandy, but I've come to the realisation if someone were to use the ...
0
votes
2answers
1k views

How to display posts on a static page? (like search loop)

How do I display the loop inside a static page? Like the loop when I use the search (which in this theme it's actually working) or on index.php An example for what I'm saying can be seen here: ...
0
votes
1answer
220 views

wp_query select if have comments

I previously asked and accepted a similar question here: wp_query and comment_parent - select only posts with top level comments So I'm trying to use wp_query to select only posts that have comments. ...
0
votes
2answers
296 views

One comment per user email per post

i have this code to limit the comments per user. <!-- #only one comment --> <?php global $current_user,$post; $args = array('user_id' => $current_user->ID,'post_id' => ...
0
votes
1answer
89 views

How to let custom post type posts show in standard post archive (like in homepage)?

If I, for example, create a custom post type named 'tutorial', how do I get it to also show up in places like "Recent posts" , etc?
0
votes
1answer
58 views

How safe is it to delete old posts edits to save database space?

After this question: http://wordpress.stackexchange.com/a/93902/27148 There is an answer that suggests deleting past edits directly from database, which would be nice, because I could create ...
1
vote
2answers
114 views

How to delete old posts' edits to save space?

I need to delete old edits and autosave, they have grown overtime, and are not needed anymore, seeing this post: http://wordpress.stackexchange.com/a/67228/27148 it states: If you have no use ...
0
votes
2answers
139 views

Getting rid of the blog page entirely

My goal is to not use a separate blog page but end up with a structure like this... http://domain.tld/page/comments/ I believe I can do this with the Cornerstone plugin ~ [ ...
0
votes
1answer
274 views

How to extract images of post and pages excluding header and logo image in wordpress?

I have tried this code to get all images from media library and i am sucessfully getting the source urls of all the images but now i want to exclude all the unwanted images like logo, header images ...
1
vote
1answer
289 views

Limit popular posts by days

I am using this get_posts array to retrieve top 15 popular posts by comments. The problem is that it shows those all those highly commented posts from the day posts were added into blog. So, the list ...