rmw_in
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to Link/Embed WP Latest Post to other websitesI go through the your provided link and i remove every thing before and after <?php … ?> and its working file…
Warning massage gone …Thnx…:)
But i m littlebit confuse abt css stylesheet link. where i can link css sylesheet link in below script? I already try in <head> tag but same warning massage shown.
******************
<?php
require(‘/home2/mazegaon/public_html/udannsports.org/news/wp-blog-header.php’);
echo (‘css/style.css’);
?>
<?php
global $post;
$args = array( ‘posts_per_page’ => 5);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<div class=”regards”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></div>
<div class=”regards”><?php the_date(); echo “
“; ?></div>
<?php endforeach; ?>
*****************************Forum: Fixing WordPress
In reply to: How to Link/Embed WP Latest Post to other websitesDear Team,
Some one can help me on last post issue?
Plz its urgent for me.Forum: Fixing WordPress
In reply to: How to Link/Embed WP Latest Post to other websitesYesterday i found following script and its working
<?php
define(‘WP_USE_THEMES’, false);
require(‘/home2/mazegaon/public_html/udannsports.org/news/wp-blog-header.php’);
?>
<?phpglobal $post;
$args = array( ‘posts_per_page’ => 5);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<div class=”regards”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></div>
<div class=”regards”><?php the_date(); echo “
“; ?></div>
<?php endforeach; ?>But i have one issue showing warning on the top of the live posts
Warning: Cannot modify header information – headers already sent by (output started at /home2/mazegaon/public_html/udannsports.org/xyz.php:14) in /home2/mazegaon/public_html/udannsports.org/news/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 62