Not working with CPT / Post_Id= 0
-
Dear Mister Sinaga,
i made a research to find the reason why i have search terms in my database which show the post_id=0 and i found this thread:You are talking about a little trick to solve that:
https://web.archive.org/web/20120304112330/https://www.openscriptsolution.com/2011/07/16/how-to-make-seo-searchterms-tagging-2-plugin-can-display-the-actual-link-to-search-terms-which-not-derived-from-wordpress-post-or-page/But even the first line i am supposed to replace is not available in your file
You say i should look for and replace this:
$result = $wpdb->get_results( "SELECT
meta_value,
meta_count,
post_idFROM
“.$wpdb->prefix.”stt2_metaORDER BY
last_modifiedDESC LIMIT ".$count.";" );
But the only line that comes close to it is:
$result = $wpdb->get_results( "SELECT
meta_value,
meta_count,
post_idFROM
“.$wpdb->prefix.”stt2_metaWHERE
post_id!= 0 ORDER BY
last_modifiedDESC LIMIT ".$count.";" );
I am not good enough in PHP to estimate what to do now.
Can you please help?regards axel
- The topic ‘Not working with CPT / Post_Id= 0’ is closed to new replies.