Thread Starter
onrboz
(@onrboz)
Not help at all. thank you anyway. Figured out
if(get_page($key->post_id))echo get_option('home').'/?p='.$key->post_id;
Googluck
Thread Starter
onrboz
(@onrboz)
I tried something,
<?php sp_url_get('spesical_page.php') ?>
function sp_url_get($sp_name){
global $wpdb;
$mynameID = $wpdb->get_results( "SELECT post_id FROM wp_postmeta WHERE meta_value = '$sp_name'" );
foreach ($mynameID as $key) {
echo $key->post_id;
}
}
Out function sp_url_get($sp_name): 12,143,225…..353
is more than one number..But there is only one of them. Others have been deleted page
Thread Starter
onrboz
(@onrboz)
<?php wp_set_post_categories( $post_ID, $post_categories ) ?>
it’s add a new category.. I need to replace the existing one.