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,174
Replies
4
Views
2,574
Replies
10
Views
6,524
Latest threads
Replies
1
Views
65
Replies
0
Views
87
Replies
0
Views
151
Replies
3
Views
369
Recommended threads
Replies
17
Views
3,018
Replies
5
Views
3,046
Replies
7
Views
7,024
Replies
0
Views
1,908
Replies
9
Views
5,118

Latest postsNew threads

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