Si da il caso però... che il tema da me usato (Atahualpa 3.4.5) non ha il file page.php ?
magari si chiama in un altro modo... e come faccio ad individuarlo ???
EDIT
Originalmente inviato da
riservanavajos
Si da il caso però... che il tema da me usato (Atahualpa 3.4.5) non ha il file page.php ?
magari si chiama in un altro modo... e come faccio ad individuarlo ???
Avrei individuato il file bfa_hor_pages.php
che ha il seguente contenuto
Codice PHP:
<?php
function bfa_hor_pages($sort_order = "menu_order", $levels = "", $titles = "No", $exclude = "") {
global $bfa_ata;
$list_pages_string = wp_list_pages('sort_column=' . $sort_order . '&title_li=&depth=' . $levels . '&exclude=' . trim(str_replace(" ", "", $exclude)) . '&echo=0');
if ( $bfa_ata['page_menu_1st_level_not_linked'] == "Yes" ) {
$list_pages_string = preg_replace("/<li class=\"(.*?)><a href=\"(.*?)\"(.*?)\n<ul>/i","<li class=\"rMenu-expand \\1><a href=\"#\" onclick=\"return false\"\\3\n <ul class=\"rMenu-ver\">",$list_pages_string);
} else {
$list_pages_string = preg_replace("/<li class=\"(.*?)\n<ul>/i","<li class=\"rMenu-expand \\1\n <ul class=\"rMenu-ver\">",$list_pages_string);
}
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t<ul>/i","<li class=\"rMenu-expand \\1\n\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
if ( $titles == "No" ) {
$list_pages_string = preg_replace("/title=\"(.*?)\"/i","",$list_pages_string);
}
return $list_pages_string;
}
?>
il file lista.php verrebbe così
Codice PHP:
<?php
/*
Template Name: Lista
*/
?>
<?php $myposts = get_posts('numberposts=5&category=1');
foreach($myposts as $post) : ?>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
<?php endforeach; ?>
<?php endif; ?>
<?php
function bfa_hor_pages($sort_order = "menu_order", $levels = "", $titles = "No", $exclude = "") {
global $bfa_ata;
$list_pages_string = wp_list_pages('sort_column=' . $sort_order . '&title_li=&depth=' . $levels . '&exclude=' . trim(str_replace(" ", "", $exclude)) . '&echo=0');
if ( $bfa_ata['page_menu_1st_level_not_linked'] == "Yes" ) {
$list_pages_string = preg_replace("/<li class=\"(.*?)><a href=\"(.*?)\"(.*?)\n<ul>/i","<li class=\"rMenu-expand \\1><a href=\"#\" onclick=\"return false\"\\3\n <ul class=\"rMenu-ver\">",$list_pages_string);
} else {
$list_pages_string = preg_replace("/<li class=\"(.*?)\n<ul>/i","<li class=\"rMenu-expand \\1\n <ul class=\"rMenu-ver\">",$list_pages_string);
}
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t<ul>/i","<li class=\"rMenu-expand \\1\n\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
$list_pages_string = preg_replace("/<li class=\"(.*?)\n\t\t\t\t\t\t\t\t\t<ul>/i","<li class=\"rMenu-expand \\1\n\t\t\t\t\t\t\t\t\t <ul class=\"rMenu-ver\">",$list_pages_string);
if ( $titles == "No" ) {
$list_pages_string = preg_replace("/title=\"(.*?)\"/i","",$list_pages_string);
}
return $list_pages_string;
}
?>
ma mi restituisce questa stringa di errore
Parse error: syntax error, unexpected T_FOREACH in /web/htdocs/www.katerpillar.it/home/wp-content/themes/atahualpa345/lista.php on line 8