Dakoom
New member
- Joined
- Nov 21, 2015
- Messages
- 32
- Points
- 0
I have this code right now:
The problem is that the table doesn't show up and I don't understand the reason. You can see a live preview of the problem [URLnf="http://www.klayz.com"]here[/URLnf]. Just scroll down the page.
Code:
<div class="text-center"><h3 class="ultime-discussioni-community"><i class="fa fa-comments-o"></i> Gli Ultimi Articoli dal <a href="http://articoli.klayz.com/" title="Gli Articoli Web di Klayz.com">Portale degli Articoli</a></h3></div>
<table class="table table-bordered">
<?php
define('WP_USE_THEMES', false);
require('./articoli/wp-blog-header.php');
global $post;
$args = array( 'posts_per_page' => 8 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<tr class="success"><td style="font-weight: bold"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a><br /></td></tr>
<?php endforeach; ?>
</table>