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
1answer
982 views

Get the post_id of a new post

There are several ways to get the id of a post after it has been saved (auto, etc.), but is there a way to get the post id immediately after you create a new post? I am trying to create a directory ...
2
votes
2answers
2k views

How to limit user to publish post per day and per role?

I would like to know is there any way/Plugin to limit the user published post (in a given time span) by his role? Like this: Role A -> 1 post per day and 30 post total. Role B -> 10 post per ...
0
votes
1answer
234 views

Lock post editing to one user at a time - wp_check_post_lock

I am creating a website where user have to be logged in to give a price bid on a product. Only one bid can be given on the product. Therefore, I only want one user at a time to be able to give a bid. ...
2
votes
2answers
211 views

deleting terms programmatically

I already checked out this page; http://codex.wordpress.org/Function_Reference/wp_delete_term It does not say what happens to the posts that may have been associated with this action. Hence my ...
0
votes
3answers
1k views

Remove the Edit button in posts for permalinks on certain user roles? WP 3.3

I am using Wordpress 3.3.2 with the following plugin: - http://wordpress.org/extend/plugins/advanced-access-manager/ The plugin works perfectly but the author said there is currently no way to ...
0
votes
1answer
849 views

Remove Posts Quick Edit link for specific user role? WP 3.3

I am using Wordpress 3.3.2 with the following plugin: - http://wordpress.org/extend/plugins/advanced-access-manager/ The plugin works perfectly but the author said there is currently no way to ...
1
vote
2answers
325 views

Remove posts after a given amount of time

guys what I'm trying to do is run a series of if checks in the code before executing a series of functions and custom code. One of these if checks will check to see if a post already exists and if so ...
1
vote
1answer
314 views

How do I write this SQL statement for Posts written in last 24 hours?

Someone gave me this SQL code to count the number of posts (of post_type 'mixtapes') in the last 7 days. I tried to convert it to 'in the last 24 hours' as well, but it's giving the wrong number. ...
1
vote
1answer
600 views

How to remove_filter that filters iframes in posts? [duplicate]

Which filter if removed allows iframes to be inserted into wordpress posts?
1
vote
2answers
1k views

How to get posts by content?

I found the following codes to get post details. However, it is not possible to get the posts by content. Does any one has any ideas? get_posts() //// get post //// $args = array( 'numberposts' ...
0
votes
1answer
399 views

where to download bb-ratings plugin for wordpress?

Does anyone have any link for bb-ratings plugin ? the one Wordpress.org is currently using for their plugin rating (http://wordpress.org/extend/plugins-plugins/bb-ratings/star.gif) tried this link : ...
2
votes
4answers
2k views

Change existing label in the admin bar with something else

In the admin bar an admin can create a new post by using the add new drop down. In there I want to change the label Post to something else. How can I do this? I just need the code to make the change ...
0
votes
1answer
72 views

The loop: more posts than I want to fit on one page

I am working on using the wordpress loop to call posts from my wordpress blog into my website. I have my loop set up to grab the 10 most recent posts under the portfolio category and display them on ...
1
vote
1answer
37 views

I would like to give special promotion for the first 100 posts in my blog? Can anyone tell me how to do that?

My website is a multi author blog. I would like to give special promotion for the first 100 published posts in my blog? What is the proper way to implement it? I mean should i add some meta value ...
2
votes
4answers
3k views

Get the object ID by URL

I have an URL (such as the URL /sample-page/), I need the corresponding object ID. How?
0
votes
2answers
83 views

Wordpress plugin Post Creation [closed]

Does someone know any plugin available that can allow any users to create a post and publish it without even registering?? In fact, I want to use it with wp-ecommerce wordpress plugin found here
0
votes
3answers
561 views

Can Permalink structure of %postname%/%post_id% improve performance

Since the post_id is unique and no full text search is needed. So is the structure %postname%/%post_id% really improve performance?
-2
votes
2answers
517 views

Combining multiple conditional statements [closed]

I need a 3 part conditional statement with all negatives but I can't get it to work. I need to say that the post isnt in category 'videos' or its child categories and isn't from the author with the id ...
1
vote
1answer
615 views

$post object is null

I am trying to use the $post object from functions.php in my theme however if I attempt to var_dump($post) it returns NULL. Here is my code: function breadcrumb_navigation() { var_dump($post); ...
0
votes
1answer
167 views

List direct children of page

I am currently using the following function to list the children of a page, however the function recursively finds children of the children and I only want to list the direct children of ...
0
votes
1answer
268 views

wp_insert_post - duration

i try to import a custom DB to the WP DB with about 2000 rows (custom post type). the problem is that the insert by wp_insert_post takes about a second per insert. Is this normal ? Is there a ...
1
vote
2answers
265 views

How can I find out what items a user has purchased? [closed]

I'm using WordPress E-Commerce (get shopped) and would like to get a list of items that a user has purchased, just a list of post IDs would be perfect. Is there any way for me to get this? It must be ...
0
votes
2answers
85 views

Page of posts made to look like homepage

Is there any way i can get a page of posts from a certain category to look like the homepage (twentyeleven theme) of just blog posts? Thanks
0
votes
2answers
1k views

How to show all posts by author on buddypress profile with navigation

I'm using Buddypress for wordpress and I'm trying to show a loop on the profile page of a user. I use infinite scroll to load more pages but the link to page 2 doesn't point to a group of posts and ...
0
votes
2answers
626 views

Conditionals if tags exist?

I have the following code to display tagged articles with the same name as the page title, but I only want the to appear if the tag exists, otherwise it just says 'Related Articles' with no content. ...
1
vote
2answers
359 views

How can I allow editors to leave comments on posts that have not yet been published?

On my NFL football blog all users are allowed to make blog posts. New registrants are given contributor status. When users make a post it is reviewed by an editor, then the editor schedules the post ...
0
votes
1answer
78 views

adding custom meta as well as looping through posts

I am grabbing two sets of custom meta and looping through the posts, order goes: custom meta1, posts, custom meta2. but for some reason the second set of custom meta wont show up if I add the posts ...
0
votes
2answers
80 views

Unable to get posts with category on my page

I am using wordpress as my CMS. I am thinking, that the left panel has titles of my "posts" under its relevant category and the right side as the title of the post and its content. I have tried to ...
4
votes
3answers
2k views

WordPress plugin to publish to multiple remote WordPress blogs

I have a WordPress (.org) blog (let's call it blog1) that is used by many authors, who may create, edit and publish posts (on blog1). Each author has her/his own WordPress blogs, hosted elsewhere. ...
2
votes
1answer
2k views

Get title of post without using the_title();

Noob question. Is there another way of getting a posts title without using the_title(); I'm asking because I am using a function the take a string parameter, then after some code, returns this ...
0
votes
1answer
41 views

Posts showing […] in it

I have seen a bug on my website. It appeared just few days back and was not present before so I am suspecting a plugin updgrade to be the reason for it. The problem is that when I open a post for ...
0
votes
1answer
503 views

meta_box or custom_field as a second tinymce post-instance?

probably a rather weird question but I have no idea if this is possible or not!? I created a custom-post-type to handle events. An event always has a future date but once this date is over I want to ...
3
votes
1answer
1k views

add_meta_box: Datepicker like the one for postdate?

I've built a custom post type called "Events". Each event has a future date and I don't want to use the normal postdate of the post. I want to use add_meta_box to add some inputs for this ...
0
votes
1answer
44 views

Can't give tags rels

In my Wordpress post I click on edit post and skip over to the html editor tab and click on it. I have a pre on that page and when i give it a rel and publish its all fine but when I skip back over to ...
1
vote
1answer
165 views

Calendar Solution: Handling upcoming Dates with Posts?

I'm not sure I'm allowed to ask a question like this on this forum, however I'll try. My question is not yet about a technical problem but how my complete theme-architecture might be build to fit my ...
-1
votes
1answer
571 views

PHP $_session is not work in wordpress

why PHP $_session is not working in wordpress my php code is session_start(); session_register('lang_opt'); $_SESSION['lang_opt'] = $_POST['lang_opt']; $mylang = $_SESSION['lang_opt']; echo ...
0
votes
2answers
16k views

How to get Category Id from Post Id ?

I need to get any post category id from the post id(Not for current) Post. How can i ? Thanks
0
votes
1answer
182 views

Get a submitted value from front end post form for single template

I'm using Wordpress Form Manager to allow users to post from the front end and I need to place values for the post in different spots in a single post template. The code they offered doesn't return ...
0
votes
4answers
3k views

Manually delete post from database

For whatever reason, I have a post and a page with the same slug name and it causes the db to hang. I can't alter the slug on either so I need to go manually delete the posts from the database and ...
1
vote
1answer
89 views

Make view count for pop up post

I'm using SimpleModal to allow users to click on a post excerpt on my homepage and popup a box showing the full post. However it doesn't count for an actual view of the post when this happens. Is ...
2
votes
2answers
1k views

Importing data from spreadsheet into wordpress DB, along with custom taxonomies and their terms

I am importing a large DB from an Excel spreadsheet into a wordpress DB. I was going to do it manually by creating a new table but decided to import it into the existing wordpress framework as it will ...
0
votes
1answer
189 views

each user having category with their name and can add sub categories post in that category

I am looking for help or plugin for the following conditions of my site I am using wordpress 3.0+ version. my site is about School where students will get register and post their experience and ...
0
votes
2answers
434 views

Custom Permalink Structure for Pages & Posts

I'd like to create a permalink structure that works in the following way: Pages - http://myurl.com/pagename Posts - http://myurl.com/news/postname/ How would I do so? Thank you
0
votes
1answer
118 views

post/page content

i am trying to insert a post/page into one of my themes files and it wont display shortcodes or php i have created a page called home in the wordpress admin-paned and inserted into my code the ...
0
votes
1answer
51 views

Link to older links

Im trying to have 5 posts for page in my blog. This is what Ive used in index.php <?php get_header(); query_posts('posts_per_page=5'); // The Loop if (have_posts()){ ...
4
votes
4answers
1k views

Different number of posts in each category

I have categories driven site. I have different template for each category. I would like to set different number of posts – different for each category. Plus I would like to add proper previous and ...
5
votes
1answer
690 views

Add a new post status in the post progression

I run a site with about 30 authors and 3 editors. Authors submit posts for review, and editors schedule or publish them. It would be useful to have another post status of "Editing" between Pending ...
2
votes
1answer
268 views

How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?

I have a custom hierarchical taxonomy containing only two levels of items. First Level the title, second level items of the taxonomy. Is it possible to add a "meta box" to the posts editor of ...
0
votes
1answer
57 views

Use Post as Front Page

Is there a way to use a post as the front page? I'd like to be able to call the latest post from a given custom post type, in a certain custom taxonomy and with a specific term and use this as the ...
0
votes
2answers
588 views

Wordpress Excerpt Paragraph Limiting

I was wondering if it was possible to get the first two paragraphs and the feature image in the excerpt. I currently have the first 100 words, but would like the the first two paragraphs. What I ...