Get the robot index value inside a loop
-
Is there a way to get the isIndexable value of the current post?
$query = new WP_Query($args); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); // bool $p_isIndexed = isAIOSEOIndexed(get_the_ID()); echo '<a href="{$p_link}">{$p_title}</a> is Indexable? {$p_isIndexed}'; } }
– Thanks in adv.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get the robot index value inside a loop’ is closed to new replies.