include wordpress category (or tag) posts in a website

  • You can install wordpress in a subdirectory of your website, in localhost as well.
  • Afterward you can embed the content (or the link) of your wordpress posts in your php pages using a code like the following:
<?php 
/* the path of your wordpress subfolder with the file, required, "wp-blog-header.php" */
require("$root/wordpress/wp-blog-header.php");
//get_header(); [you can omit this row, if you want embed the wp posts in your page having already header and styles]
?>


<?php
// Get the last 200 posts of a given category: 
//in this case the 565 one (=office).
global $post;
$args = array('posts_per_page' => 200,  'category' => 565 );
$myposts = get_posts( $args );

foreach( $myposts as $post ) :	setup_postdata($post); ?>
<h2><?php the_title(); ?></h2>
<p><?php the_content(); ?></p>
// the following code is to put a link: you could choose to don't add it, or, on the contrary, to put only it
<a href="<?php the_permalink() ?>" rel="bookmark" 
title="Permanent Link to <?php the_title_attribute(); ?>">
<?php the_title(); ?></a><br />
<?php endforeach; ?>
  • if you want embed in your pages tag posts instead of category posts you can use this code

$args = array('posts_per_page' => 100, 'tag' => 'css' );

Further info here.

QuodLibet

perché è un programma utile

Si tratta di un player audio in Python: come player non è granché, Amarok è sicuramente meglio. Però Quodlibet è abbinato a Ex-Falso, un manipolatore di tags più potente di Amarok. Infatti Ex-Falso legge e e scrive i tags ID3v2, come Amarok non riesce a fare, e può scrivere e leggere anche tags opzionali. Come potete vedere nella schermata, ho aggiunto “tonalita”, come non avrei potuto fare con Amarok.

[Image]

possibile problema

Il programma non parte e il messaggio di errore è: “The audio output pipeline ‘gconfaudiosink profile = music’ could not be created”

soluzione

Per farlo partire può allora essere necessario aggiungere al file config le seguenti righe:

  • “alsasink device = hw:1” nella sezione [settings]
  • “gst_pipeline = alsasink” nella sezione [player]

meta tags

Quale che si il tipo di media a cui volete aggiungere un tag, è di norma preferibile che il (meta)tag sia incorporato nel file multimediale.
In questo modo, se si dovesse reinstallare il programma con cui essi vengono letti, o trasferire i files da un PC all’altro, ad esempio, non si correrebbe il rischio di aver lavorato invano.
Amarok ad esempio lo fa, automaticamente, per i tags classici (nome artista, titolo, anno, genere ecc.), ma ovviamente non lo fa per voci come “score”, o “rating” che vengono aggiunte a un suo database esterno ai files musicali così taggati.
Digikam lascia scegliere all’utente: occorre dirgli, nei Settings, che gli “image tags” siano trattati come “Keywords tags” e con ciò incorporati nel file immagine.