[SOLVED]Redeclaration error Integrating WordPress into CMSMS
Posted: Tue Nov 24, 2015 11:43 am
CMS 2.0.1.1. I am trying to show WordPress posts inside a CMSMS page. I started with the following UDT called "Blog".
When I display the page, it says:
In the bigger picture, does my attempt at integrating WordPress this way have any chance of working?
Code: Select all
require('/xyz/abc/public_html/blog/wp-blog-header.php');
// Get the last 3 posts.
global $post;
$args = array( 'posts_per_page' => 3 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post);
echo '<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a><br />';
endforeach;
Is there a way to work around this problem?Fatal error: Cannot redeclare is_email() (previously declared in /xyz/abc/public_html/lib/misc.functions.php:1058) in /xyz/abc/public_html/blog/wp-includes/formatting.php on line 2450
In the bigger picture, does my attempt at integrating WordPress this way have any chance of working?