omidghs 3 ارسال شده در تیر 95 گزارش بازنشر ارسال شده در تیر 95 سلام من کدی دارم که زمینه دلخواه در rss نشون میده ولی مشکلش اینه که برای همه پست ها نشون میده حتی پست هایی که اون زمینه دلخواه درشون استفاده نشده میشه شرطی گذاشت که اگه خالی بود نمایش داده نشه؟function embed_rssfooter123($content) { if(is_feed()) { global $post; $post_id= $post->ID; $link128 = get_post_meta($post_id, '128', true); $link320 = get_post_meta($post_id, '320', true); $content .= "</br><a href='$link128'>128دانلود</a></br><a href='$link320'>دانلود 320</a>\n"; } return $content; } add_filter('the_content', 'embed_rssfooter123'); add_filter('the_excerpt_rss', 'embed_rssfooter123'); نقل قول لینک به ارسال
omidghs 3 ارسال شده در تیر 95 مالک گزارش بازنشر ارسال شده در تیر 95 function embed_rssfooter123($content) { if(is_feed()) { global $post; $post_id= $post->ID; $link128 = get_post_meta($post_id, '128', true); $link320 = get_post_meta($post_id, '320', true); $content .= "</br><a href='$link128'>128دانلود</a></br><a href='$link320'>دانلود 320</a>\n"; } return $content; } add_filter('the_content', 'embed_rssfooter123'); add_filter('the_excerpt_rss', 'embed_rssfooter123'); نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .