I personally use stackoverflow very frequently and merely discovered in the search engines about that one, Nice :D

Well, i wish to save my every publish i write from wordpress to my 3rd (OEXChangeble) website aswell simultaneously, so i have to send the data to this site, creating a wordpress plugin iguess

I want essentially the permalink (and that i would have the ability to extract the relaxation from the params from the wesite), but better basically could possibly get title, tags, permalink and outline(or a lot of it)

i realize by my google research that i have to do is add something similar to


//header of plugin   
function myFunctionThatSendsMyWebsite($url){
// procedure containing a file_get_contents('myqwebsite?url=') request to my website
add_action('page_post', 'myFunctionThatSendsMyWebsite', $permalink));


I've problems thoug locating the title of variables i've missing (marked by ???). I understand that $publish consists of all objet, how you can extract the data from this (if there's), or maybe it's complicated, it might be enought for me personally with permalink

Any tip?


based on this link, this will work, the publish id will be delivered to this function instantly and you will get anything you would like from the publish id.

function myFunctionToSendPost($post_ID)  {
   $post = get_post($post_ID); 
   $title = $post->post_title;
   $content = $post->post_content;
   $permalink = get_permalink($post_ID);   


   return $post_ID;

add_action('publish_post', 'myFunctionToSendPost');

BTW, this function is known as whenever a publish is released, you are able to change it out to occur when saved by

add_action('save_post', 'myFunctionToSendPost');

add wrinkles for your theme's functions.php file.

1) Although this does not make use of the save_publish feature, you may also make use of this code to show blogs on the completely separate site, as lengthy as it’s on a single server and you've got filesystem accessibility WordPress directory around the original site. Simply customize the require() within the first block in this article to make use of the entire road to your WordPress installation:

 // Include WordPress 
 define('WP_USE_THEMES', false);

position your publish having a while loop:

 <?php while (have_posts()): the_post(); ?>
 <?php endwhile; ?>

if you wish to specify which areas of the publish to show make use of this code:

<?php while (have_posts()): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>">Read more...</a></p>
<?php endwhile; ?>

2) What about while using nourishes out of your wordpress blog?

The next code displays a listing of the feed game titles with explanations together with a hyperlink towards the original WordPress posts:

<?php //  Load the XML file into a Simple XML object
$filename = http://feeds.feedburner.com/<em>yourfeedname</em>";
$feed = simplexml_load_file($filename);

//  Iterate through the list and create the unordered list
echo "<ul>";
foreach ($feed->channel->item as $item) {
echo "<li><a href='" . $item->link . "'>" . $item->title . "</a></li>";
echo "</ul>";
echo "<li>" . $item->description . "</li>";

3) Feedburner includes a free feature known as BuzzBoost where one can get the posts show inside a regular HTML website that when triggered you can just copy the script they provide to your HTML in which you want their email list to look. Out of your feedburner account you are able to adjust some elements like if the Blog title should appear or otherwise, the format from the date, etc...

You may also style the output using regular CSS inside you websites existing CSS.

Take a look Feedburner here: https://www.google.com/accounts/ServiceLogin?service=feedburner&continue=http%3A%2F%2Ffeedburner.google.com%2Ffb%2Fa%2Fmyfeeds&gsessionid=5q8jqacBluH1-AnXp08ZFw