i am fetching data against a cpt in tabs so that when someone hover over a tab its content is shown in below div. now data is being fetched and when hover over tabs data bottom div also shows the text but instead of shwoing menu items in tab its giving me rror"The name tabs_title is already in use." . This is written on each tab instead of menu item this is my code to show tabs

      <?php $args = array('post_type' => 'services', 'posts_per_page' => 7, 'orderby ' => 'date', 'order' => 'ASC');

    $loop = new WP_Query($args);
    $i = 0;
    while ($loop->have_posts()) : $loop->the_post();
        <a href="#tabs-<?php echo $i; ?>"  
        onclick="window.location='<?php the_permalink(); ?>'">
        <?php print_custom_field('tabs_title'); ?></a>
  <?php endwhile; ?>
  • print_custom_field isn't a WordPress core function, and that error is not an error message generated by core. I'll guess they are both related to a plugin, and if that's the case, you should ask the developer of the plugin.
    – Milo
    Commented Oct 17, 2015 at 18:39
  • Yeah was just about to ask - where is print_custom_field() coming from? Commented Oct 17, 2015 at 18:40
  • that comes from Custom Content Type Manager plugin
    – Sikander
    Commented Oct 17, 2015 at 18:42


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.