Need help with table display
-
Hi,
I’m using wordpress script version 3.0.1 on http://www.internetresearchcell.comI’ve inserted a table into a post at http://www.internetresearchcell.com/table.php
and it is showing good there but when you open http://www.internetresearchcell.com/ thn the table is gone πI’ve used no plugin but written html table code for the purpose.
Can anybody help me?!
Thanks!
Vipra
-
Did you use the HTML tab to add your table? Did you switch to the Visual Editor at any point?
Following lines of code I’ve used in the html view.
<table border=”2″>
<tr>
<th>DEVELOPMENT CENTER</th>
<th>PROMOTION CENTER</th>
<th>DIAGNOSTIC CENTER</th>
</tr>
<tr>
<td><p align=”justify”>Internet Research Cell offers quality web design and web development services at very affordable rates. We deliver result oriented solutions to our client’s requirements and help their businesses to come online with attractive design and functionalities. We expertise in developing web pages on various platforms like HTML, ASP, ASP .NET and PHP. We help bloggers with attractive and search engine friendly blog templates created by talented designers at our development center.</p></td>
<td><p align=”justify”>Internet Research Cell help increase website visibility over search engines and other internet marketing media through effective marketing techniques. A team of highly qualified and experienced search engine optimizers and internet marketing experts are engaged in bringing online businesses to reach to their potential customers. We are busy increasing link popularity through quality one-way linking building, blog posting, directory submission, article submission, social bookmarking and so on.</p></td>
<td><p align=”justify”>Internet Research Cell provides free website analysis and diagnosis to find the problems that adversely effect website promotion. A team of qualified and experienced professionals at our diagnostic center are busy analysing websites with latest and sophisticated tools to find any possible bugs. You can contact us for free SEO quote. You might be worried on why your online business is still hiding in dark even after doing all sorts of promotional activities! Contact us and we’ll find an exact solution.</p></td>
</tr>
</table>As you can see, table is working fine on the post page but is not working on the home page.
The issue may lie in your theme’s index.php template file. It needs to use
<?php the_content{};?>to display your markup correctly.index.php template file has the following lines of code:
<?php
get_header();if (have_posts())
{
while (have_posts())
{
art_post();
}
art_page_navi();
} else {
art_post_box(
__(‘Not Found’, ‘kubrick’),
‘<p class=”center”>’ . __(‘Sorry, but you are looking for something that isn’t here.’, ‘kubrick’) . ‘</p>’
. “\r\n” . art_get_search());
}get_footer();
where should I insert <?php the_content{};?> in between?
Please post code snippets between backticks.
You need to look at the art_page_navi() function – presumably in functions.php.
in functions.php there is a code function art_page_navi($title = ”, $comment = false)
Should I place <?php the_content{};?> between (”) like function art_page_navi($title = ‘<?php the_content{};?>’, $comment = false)
??
I’d need to see the complete art_page_navi() function to say for sure.
[Code moderated as per the Forum Rules. Please use the pastebin for larger blocks of code.]
How should I show you the entire function now?
Use the pastebin at the link above.
Here is the whole functions.php code
Please let me know where should I paste <?php the_content{};?> in it.
Try changing:
function art_get_post_content() { global $post, $art_config; ob_start(); if(is_single() || is_page()) { echo art_get_the_content(__('Read the rest of this entry »')); wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); } else { echo art_get_the_excerpt(__('Read the rest of this entry »'), get_permalink($post->ID), $art_config['metadata']['excerpt_words'], explode(',',$art_config['metadata']['excerpt_allowed_tags']), $art_config['metadata']['excerpt_min_remainder'], $art_config['metadata']['excerpt_auto']); } return ob_get_clean(); }to:
function art_get_post_content() { global $post, $art_config; ob_start(); if(is_single() || is_page()) { echo art_get_the_content(__('Read the rest of this entry »')); wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); } else { echo echo art_get_the_content(__('Read the rest of this entry »')); } return ob_get_clean(); }Got an error while trying making the change;
Parse error: syntax error, unexpected T_ECHO in /home/interne4/public_html/wp-content/themes/IRC090910/functions.php on line 136
issue resolved! Thanks esmi for your time and response.
It was template problem. I’ve upgraded it now. table is showing fine now.Thank you!
Vipra
The topic ‘Need help with table display’ is closed to new replies.