J'ai une page HTML que je viens de télécharger.
A partir caractère 6732, j'ai ce qui m'intéresse. Mais, je ne veux pas tout ce qu'il y a après.
Il faut que des que le script croise " <a href=" (attention, "espace<a href=") il coupe tout ce qui vient après avec le " <a href=".
Exemple de "page.html", je veux ce qu'il y a à partir du caractère 629.
Code : Tout sélectionner
Start off with a simple template called archives.php, stored in your theme's directory. The WordPress Default Theme includes such a template, and it makes a good starting point.
Technically, the template can be called almost anything (see these two lists for names you should not use; these are special file names WordPress reserves for specific purposes). However, using a standard name for your template will make it easier to change your blog's theme or distribute your theme and template to the WordPress community. It's also possible to display a large archive index using one of the all-purpose templates (like index.php or category.php)[b] <a href=[/b]and the is_page function, but again, taking advantage of the theme system's modularity makes it easier for others (and for you!) to edit your template later.
For more information on creating templates, see Template Tags, particularly wp_get_archives.► Afficher le texteréponse



