Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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).
1
vote
Restrict the Number of Posts an Author can Publish (over time)?
I think your best bet is to utilize this Wordpress thread with code to limit number of posts for registered users: http://wordpress.org/support/topic/limit-the-number-of-posts-a-user-can-make? … replies=18
You would need to change the $count_posts var to only count posts made within your time-frame... …
3
votes
Accepted
Delete Post From Front-End and attachment permanently
See this ticket for an explanation: http://core.trac.wordpress.org/ticket/12108 Gist being that
media files may be used by other posts
as well, which is why they must be
deleted in the media library … If you want to go against that rational, you can add this to your functions.php:
function delete_post_children($post_id) {
global $wpdb;
$ids = $wpdb->get_col("SELECT ID FROM {$wpdb->posts} WHERE …
1
vote
3
answers
1k
views
How to retrieve the postID in a "image_send_to_editor" hook function?
Here is my function:
function insert_img_rel_attrib( $html, $id, $caption, $title, $align, $url )
{
$postID = ???
$rel = "<a rel='shadowbox[".$postID."]'";
if ($url) {$html = str_replace("<a", …