Visualizzazione 0 filoni di risposte
Visualizzazione 0 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Script per pubblicare post wordpress su un sito esterno
Ciao a tutti,
ho letto alcune discussioni a proposito di pubblicare dei post di wordpress su un sito esterno(ed è quello che servirebbe a me), tipo questa:
http://www.wpitaly.it/forum/topic/7364
purtroppo di php ci capisco nulla…ho provato a inserire i diversi scriptini, ma nulla da fare ricevo sempre gli errori
Warning: require(miosito.it/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /web/htdocs/www.miosito.it/home/index_testp.php on line 12
Warning: require(miosito.it/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /web/htdocs/www.miosito.it/home/index_testp.php on line 12
Fatal error: require() [function.require]: Failed opening required 'miosito.it/wp-blog-header.php' (include_path='.:/php5/lib/php/') in /web/htdocs/www.miosito.it/home/index_testp.php on line 12
probabilmente è una cosa banalissima, ma non ne vengo fuori...
ps: il codice che ho inserito è questo
<?php
require('blog/wp-blog-header.php');
?>
<?php
// stampa il numero di post di quella determinata categoria basandosi sull'ID
query_posts('showposts=1&cat=289');
global $more;
// imposta $more a 0 per ottenere solo la prima parte del post se more e' presente
$more = 1;
// il Loop
while (have_posts()) : the_post(); ?>
< a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink a <?php the_title(); ?>"><?php the_title(); ?></ a>
<?php the_content('Continua a leggere...'); ?>
<?php endwhile;
?>
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0