Problems with integrating WP posts on external page: how to insert them in tables

Dakoom

New member
Joined
Nov 21, 2015
Messages
32
Points
0
I have this code right now:

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>
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.
 
Older threads
Newer threads
Replies
8
Views
3,243
Replies
4
Views
2,627
Replies
10
Views
6,951
Latest threads
Replies
4
Views
402
Replies
0
Views
68
Replies
1
Views
113
Replies
1
Views
111
Recommended threads
Replies
1
Views
2,029
Replies
2
Views
3,379

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top