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

Dakoom

Member
Registered
Joined
Nov 21, 2015
Messages
31
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 here. Just scroll down the page.
 

Dakoom

Member
Registered
Joined
Nov 21, 2015
Messages
31
Points
0
Solved. My bad.... it was a chaching issue.
 
Older Threads
Newer Threads
Replies
8
Views
2,557
Replies
4
Views
2,288
Replies
13
Views
8,455

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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