indyjones48
Forum Replies Created
-
Forum: Plugins
In reply to: [Search Everything] Does Search Everything support Ajax?Hi Silvo!
I’m using your great tool for expanded searching, and this was the exact solution I needed to enable Ajax-based searches from the front-end.
Thanks!
Forum: Hacks
In reply to: Flutter strips post_type info from Custom Post Typessigh
Forum: Hacks
In reply to: Flutter strips post_type info from Custom Post TypesLet’s try this again:
function cwp_add_type_identifier(){ global $wpdb; global $post; if( isset($_GET['custom-write-panel-id']) && !empty($_GET['custom-write-panel-id'])) { $getPostID = $wpdb->get_results("SELECT id, type FROM ". RC_CWP_TABLE_PANELS ." WHERE id='".$_GET['custom-write-panel-id']."'"); echo "<input type=\"hidden\" id=\"post_type\" name=\"post_type\" value=\"". $getPostID[0]->type ."\" />"; } else{`echo “<input type=\”hidden\” id=\”post_type\” name=\”post_type\” value=\””.$post->post_type.”\” />”;
/* if($post->post_type == ‘page’) {
echo “<input type=\”hidden\” id=\”post_type\” name=\”post_type\” value=\”page\” />”;
} else {
echo “<input type=\”hidden\” id=\”post_type\” name=\”post_type\” value=\”post\” />”;
}*/`}Forum: Hacks
In reply to: Flutter strips post_type info from Custom Post TypesWhoops so it didn’t bold it, modified section is in between the tags, which should NOT be included in the fix.
Forum: Plugins
In reply to: Get image ID from pathPosting just for anyone looking for an answer. Each post, images and other attachments included, has an associated GUID that is its complete URL path. So, just pull the “post” with the associated GUID:
SELECT id FROM wp_posts WHERE guid = ‘http://myblogdomain.com/full-path-to-image.jpg’