Data But No Table Showing
-
I have installed the plugin, no problem, the back end is great but I’m having probs with the front. The data i enter shows but no actual table with cells etc. https://angelescortsvietnam.com/nha-trang-rota/
My them is a custom theme I believe.
Kind regards
Phil
-
Hi Phil,
this happens, because your theme does not load the styling commands of WP-Table Reloaded. This happens, because your theme’s “header.php” does not contain a call to
wp_head();
. To fix this, modify your theme and add the line<?php wp_head(); ?>
right before the closing HTML
</body>
tag in the theme’s “header.php”.Best wishes,
TobiasI have the same problem, but the header.php file is so complicated, that i don’t know where to put the line.
<?php global $color_theme, $current_user, $actual_font, $post, $wpsc_pages; $wpsc_class = ''; if ( is_page( $wpsc_pages ) || is_post_type_archive( 'wpsc-product' ) || 'wpsc-product' == get_post_type() ) $wpsc_class = 'wpsc'; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php wp_title(' | ', true, 'right'); ?> <?php bloginfo('name'); ?></title> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/tipsy.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/custom.php?style=<?php echo $color_theme ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', TEXTDOMAIN), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', TEXTDOMAIN), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php if( plugin_is_activated( 'wp-e-commerce/wp-shopping-cart.php' ) ) wp_enqueue_style('wp-ecommerce-style', get_template_directory_uri()."/css/wp-ecommerce.css"); wp_enqueue_style('niov-slider', get_template_directory_uri()."/css/nivo-slider.css"); wp_enqueue_script( 'jquery-cycle', get_template_directory_uri()."/js/jquery.cycle.all.min.js", array('jquery'), "2.94"); wp_enqueue_script( 'jquery-easing', get_template_directory_uri()."/js/jquery.easing.1.3.js", array('jquery'), "1.3"); wp_enqueue_script( 'jquery-prettyPhoto', get_template_directory_uri()."/js/jquery.prettyPhoto.js", array('jquery'), "3.0"); wp_enqueue_script( 'jquery-tipsy', get_template_directory_uri()."/js/jquery.tipsy.js", array('jquery')); wp_enqueue_script( 'jquery-hrzAccordion',get_template_directory_uri()."/js/jquery.hrzAccordion.js", array('jquery')); wp_enqueue_script( 'jquery-tweetable', get_template_directory_uri()."/js/jquery.tweetable.js", array('jquery')); wp_enqueue_script( 'jquery-jcarousel', get_template_directory_uri()."/js/jquery.jcarousel.min.js", array('jquery')); wp_enqueue_script( 'jquery-nivo', get_template_directory_uri()."/js/jquery.nivo.slider.pack.js", array('jquery'), "2.5.2" ); //wp_enqueue_script( 'jquery-quicksend', get_template_directory_uri()."/js/jquery.quicksand.js", array('jquery'), '1.2.2', true); wp_enqueue_script('swfobject'); wp_enqueue_script( 'jquery-custom', get_template_directory_uri()."/js/jquery.custom.js", array('jquery', 'jquery-ui-tabs'), '1.0', true); wp_localize_script( 'jquery-custom', 'objectL10n', array( 'wait' => __( 'wait...', TEXTDOMAIN ), 'emailerror' => get_option( 'bl_contact_form_error_email', __( 'Insert correct email', TEXTDOMAIN ) ), 'requireerror' => get_option( 'bl_contact_form_required', __( 'This field is required', TEXTDOMAIN ) ) ) ); if( $actual_font != 'default' ) { wp_enqueue_script('cufon', get_template_directory_uri()."/js/cufon-yui.js"); wp_enqueue_script('cufon-' . $actual_font, get_template_directory_uri()."/fonts/{$actual_font}.font.js"); } /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_style( 'jquery-jCarousel', get_template_directory_uri() . '/css/jCarousel.css' ); wp_head(); ?> <!--[if IE]> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie.css" type="text/css" media="screen, projection" /> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie7.css" type="text/css" media="screen" /> <![endif]--> <!-- [favicon] begin --> <?php $favicon = unserialize( get_option('bl_favicon') ) ?> <link rel="shortcut icon" type="image/x-icon" href="<?php echo $favicon['url']; ?>" /> <link rel="icon" type="image/x-icon" href="<?php echo $favicon['url']; ?>" /> <script type="text/javascript"> <?php if( $actual_font != 'default' ) : ?> Cufon.replace('h1:not(.no-cufon)', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_option_fontsize( 'h1' ), 'px\'' ) ?>}); Cufon.replace('h2:not(.no-cufon)', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_option_fontsize( 'h2' ), 'px\'' ) ?>}); Cufon.replace('h3:not(.no-cufon)', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_option_fontsize( 'h3' ), 'px\'' ) ?>}); Cufon.replace('h4:not(.no-cufon)', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_option_fontsize( 'h4' ), 'px\'' ) ?>}); Cufon.replace('h5:not(.no-cufon)', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_option_fontsize( 'h5' ), 'px\'' ) ?>}); Cufon.replace('h6:not(.no-cufon)', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_option_fontsize( 'h6' ), 'px\'' ) ?>}); Cufon.replace('.sidebar-small-size h3, .sidebar-small-size h2, body.wpsc #content .sidebar h3, body.wpsc #content .sidebar h2', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_option_fontsize( 'h5' ), 'px\'' ) ?>}); Cufon.replace('.name-testimonial span.title', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'title-testim' ), 'px\'' ) ?>}); Cufon.replace('.call-to-action .incipit h2', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'calltoaction-h' ), 'px\'' ) ?>}); Cufon.replace('.call-to-action .incipit p', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'calltoaction-p' ), 'px\'' ) ?>}); Cufon.replace('#content .contact-form label .label', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'contact-label' ), 'px\'' ) ?>}); Cufon.replace('#content .contact-form label .sublabel', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'contact-sublabel' ), 'px\'' ) ?>}); Cufon.replace('#nav ul.level-1 > li > a', {fontFamily: '<?php echo $actual_font ?>', hover: true<?php string_( ', fontSize: \'', get_option_fontsize( 'nav' ), 'px\'' ) ?>}); Cufon.replace('.name-testimonial span.website', {fontFamily: '<?php echo $actual_font ?>', hover: true<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'title-testim' ), 'px\'' ) ?>}); Cufon.replace('#portfolio li h3 a', {fontFamily: '<?php echo $actual_font ?>', hover: true}); Cufon.replace('#footer h2', {fontFamily: '<?php echo $actual_font ?>', textShadow: '0 2px 0 rgba(255,255,255,0.42)'}); Cufon.replace('#topbar a:not(.access-info-box *)', {fontFamily: '<?php echo $actual_font ?>', textShadow: '0 2px 2px #dcdbdb'<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'topbar' ), 'px\'' ) ?>, hover: true}); Cufon.replace('.p404 strong', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', 100, '%\'' ) ?>}); <?php if( if_ecommerce() ) : ?> Cufon.replace('.sidebar .featured-projects-widget p.categories', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'project-widget' ), 'px\'' ) ?>}); Cufon.replace('.sidebar .featured-projects-widget p.categories a', {fontFamily: '<?php echo $actual_font ?>'<?php string_( ', fontSize: \'', get_fontsize( $actual_font, 'project-widget' ), 'px\'' ) ?>}); <?php endif ?> <?php do_action( 'yiw_add_cufon_role' ) ?> <?php endif ?> </script> </head> <?php $topbar = get_option( 'bl_topbar', 'fixed' ) ?> <body <?php body_class("no_js topbar-$topbar font_$actual_font $wpsc_class") ?>> <?php if( $topbar != 'none' ) : ?> <!-- START TOPBAR --> <div id="topbar"> <ul class="inner"> <?php do_action( 'yiw_before_render_topbar' ) ?> <?php if( plugin_is_activated( 'wp-e-commerce/wp-shopping-cart.php' ) ) : ?> <li class="right icon cart margin fast-info" id="cart-top"> <?php echo wpsc_shopping_basket_internals( ( isset( $_SESSION['nzshpcrt_cart'] ) ? $_SESSION['nzshpcrt_cart'] : null ), false, true); ?> </li> <li class="right"> <a href="<?php echo get_permalink( get_pageID_by_pagename('checkout') ) ?>"><?php _e('Checkout', TEXTDOMAIN) ?></a> </li> <?php endif ?> <?php if ($current_user->user_level > -1) : ?> <li class="right"> <a href="<?php echo wp_logout_url( yiw_curPageURL() ); ?>"><?php _e('Logout', TEXTDOMAIN) ?></a> | <?php if( plugin_is_activated( 'wp-e-commerce/wp-shopping-cart.php' ) ) : ?> <a href="<?php echo get_permalink( get_pageID_by_pagename('your-account') ) ?>"><?php _e('Your Account', TEXTDOMAIN) ?></a> | <?php endif ?> <?php else : ?> <li class="right"> | <a href="<?php echo home_url() ?>/wp-login.php?action=register"><?php _e('Register', TEXTDOMAIN) ?></a> | </li> <li class="right icon plus fast-info"> <a href="<?php echo wp_login_url( yiw_curPageURL() ); ?>"><?php _e('Login', TEXTDOMAIN) ?></a> <div id="fast-login" class="access-info-box"> <form action="<?php echo wp_login_url( yiw_curPageURL() ); ?>" method="post" name="loginform"> <div class="form"> <p> <label> <?php _e( 'Username', TEXTDOMAIN ) ?><br/> <input type="text" tabindex="10" size="20" value="" name="log" class="input-text" /> </label> </p> <p> <label> <?php _e( 'Password', TEXTDOMAIN ) ?><br/> <input type="password" tabindex="20" size="20" value="" name="pwd" class="input-text" /> </label> </p> <p class="align-right"> <input type="submit" tabindex="100" value="<?php _e( 'Login', TEXTDOMAIN ) ?>" name="wp-submit" class="input-submit" /> <input type="hidden" value="<?php echo yiw_curPageURL(); ?>" name="redirect_to" /> <input type="hidden" value="1" name="testcookie" /> </p> </div> <div class="small-cart-links"> <label class="rememberme"> <input type="checkbox" tabindex="90" value="forever" name="rememberme" /> <?php _e( 'Remember Me', TEXTDOMAIN ) ?> </label> <a class="lostpassword" href="<?php echo wp_login_url(); ?>?action=lostpassword" title="<?php _e('Password Lost and Found', TEXTDOMAIN) ?>"> > <?php _e( 'Lost password?', TEXTDOMAIN ) ?> </a> </div> </form> </div> <?php endif; ?> </li> <?php do_action( 'yiw_after_render_topbar' ) ?> </ul> </div> <!-- END TOPBAR --> <?php endif ?> <!-- START HEADER --> <div id="header"> <div class="inner"> <?php do_action( 'yiw_before_render_header' ) ?> <?php clear() ?> <!-- START LOGO --> <div id="logo"> <a href="<?php bloginfo('siteurl') ?>" title="<?php bloginfo('name') ?>"><?php bloginfo('name') ?></a> </div> <!-- END LOGO --> <!-- START NAVIGATION --> <?php $options = array( 'theme_location' => 'nav', 'container_id' => 'nav', 'menu_class' => 'level-1', 'depth' => 3, //'fallback_fb' => null, 'walker' => new description_walker() ); wp_nav_menu( $options ) ?> <!-- END NAVIGATION --> <?php clear('space') ?> <?php do_action( 'yiw_after_render_navigation' ) ?>
I’ve got the same issue, I have wp_head() in header.php
As I read the first post again, I noticed that he has data(just not organized in cells), but in my case I don’t get anything in the post or page. Is this the same issue?
Ah I’m the same as you and nothing renders (no data or table).
By the way it looks to me like your header.php contains wp_head(); as the other person mentioned it should.I found another post form someone with the same issue and both of us have a random <div class=”table_”></div> can you see if you have that in your page?
in which file did you find this div class?
Hi,
both of you have
wp_head();
in the header.php, so that is fine.Now, the fact that the entire data is missing likely has a different reason. There’s probably another plugin or the theme interfering.
As myspoon says that there is a
<div>
being inserted, I assume that you have another plugin activated that also registers the[table /]
Shortcode, and therefore WP-Table Reloaded is not used. Can you check that?Also, both of you, please post the URLs to the page where you inserted the Shortcode.
Regards,
TobiasHi,
thanks for that link!
You are using the same theme as myspoon, so this indeed should be caused by the Kassyopea theme.
You could either check if there is a theme setting to disable the usage of tables by the theme, or you could change the Shortcode that WP-Table Reloaded uses, by following the instructions to create a WP-Table Reloaded Extension at https://tobias.baethge.com/2010/01/extension-3-changing-the-table-shortcode/.
Regards,
TobiasI followed the instructions, changed the shortcode and it works perfectly. Thank you so much!
Hi,
great, thanks for the confirmation! ??
Nice to hear that it works now!Best wishes,
TobiasI did the same and it works great. Thank you very much!!
Hi,
awesome! And no problem, you are very welcome!
Best wishes,
TobiasHi Tobias,
You are so great to help us all with your fantastic plugin. I have been using it for a while with great success. However, now my tables don’t show up. I guess I had better change the short code as mentioned above.
However, I’m a real at newbie at editing code. Can you tell me exactly where to put the code you suggested:
_________________
function wp_table_reloaded_change_table_shortcode( $shortcode ) {
return ‘wptable_KD’;
}
add_filter( ‘wp_table_reloaded_shortcode_table’, ‘wp_table_reloaded_change_table_shortcode’ );
____________________You describe it here:
https://tobias.baethge.com/2010/01/extension-3-changing-the-table-shortcode/
But it I couldn’t figure out exactly where to put it because I couldn’t find the closing PHP tag you described.Here is my page with the invisible table in it.
https://lasertagofsantarosa.com/entertainment/?cat=17Thanks very much!
Kirk
- The topic ‘Data But No Table Showing’ is closed to new replies.