If you look at the code of your page, you have a big error. Header is call two times and the body is unclosed.
In your pluxml theme, in all php page of this theme, delete the call to header and footer :
I understand what you say. It will take me some time to solve this because if I delete the call to the header I have style problems. I will rearrange all again.
And about pagination I have replaced the code (I think there are a couple of small mistakes in it and I have tried to correct them) following your instructions like this:
I have done this in the home.php page of the theme. But it is not working. You can see for yourself here: http://www.bufetepedrola.com/index.php
Sure I have done something wrong. :-)
I'm lost. Sure I am losing something but I don't understand you. You say I can't do this: echo '<p id="pagination">'.$plxShow->pagination().'</p>';
because I can't concatenate two echos. What should I do instead? Should I delete this line from the code you writed? I thought that copying your code will be right.
On the other hand, I don't know how to do an echo of $pages please ? Please, advice.
Thanks for the help. No, it is not doing the work. There is something I am doing wrong. Jerry is helping me to do the following: when paginating everything goes fine in both senses except when I am in page 2 and want to go to page 1, I clic the link and it takes me to the home page of the site because the script assumes that is in the blog directory so just indicating it, index.php will be find. But as I have arranged the index.php with html (old question) I have a index.html page that is the one that shows. Much easier if you go to : http://www.bufetepedrola.com/index.php?page2 , go to the bottom and clicks the link "anterior". you will see what I mean.
Réponses
In your pluxml theme, in all php page of this theme, delete the call to header and footer : Then, for your pagination issue, remplace : by
I understand what you say. It will take me some time to solve this because if I delete the call to the header I have style problems. I will rearrange all again.
And about pagination I have replaced the code (I think there are a couple of small mistakes in it and I have tried to correct them) following your instructions like this:
<?php ob_start();
echo '<p id="pagination">'.$plxShow->pagination().'</p>';
$pages = ob_get_clean();
echo str_replace('<a href="'.$plxShow->urlRewrite().'" ','<a href="'.$plxShow->urlRewrite().'index.php?page1" ',$pages);
?>
I have done this in the home.php page of the theme. But it is not working. You can see for yourself here: http://www.bufetepedrola.com/index.php
Sure I have done something wrong. :-)
Thanks in advance. Regards.
$plxShow->pagination() return an echo. You can't concatenate it with another echo
Consultant PluXml
Ancien responsable du projet (2010 à 2018)
I'm lost. Sure I am losing something but I don't understand you. You say I can't do this: echo '<p id="pagination">'.$plxShow->pagination().'</p>';
because I can't concatenate two echos. What should I do instead? Should I delete this line from the code you writed? I thought that copying your code will be right.
On the other hand, I don't know how to do an echo of $pages please ? Please, advice.
Many thanks. Regards.
Replace by I'm just giving you a correct syntaxe. I don't know if it's doing the job
Consultant PluXml
Ancien responsable du projet (2010 à 2018)
Thanks for the help. No, it is not doing the work. There is something I am doing wrong. Jerry is helping me to do the following: when paginating everything goes fine in both senses except when I am in page 2 and want to go to page 1, I clic the link and it takes me to the home page of the site because the script assumes that is in the blog directory so just indicating it, index.php will be find. But as I have arranged the index.php with html (old question) I have a index.html page that is the one that shows. Much easier if you go to : http://www.bufetepedrola.com/index.php?page2 , go to the bottom and clicks the link "anterior". you will see what I mean.
Thanks again. Regards.
<?php ob_start();
echo '<p id="pagination">';
$plxShow->pagination();
echo '</p>';
$pages = ob_get_clean();
echo str_replace('<a href="'.$plxShow->urlRewrite().'" ','<a href="'.$plxShow->urlRewrite().'index.php?page1" ',$pages);?>
Thanks.
replace by
Same problem here: $plxShow->urlRewrite() returns an echo.
Consultant PluXml
Ancien responsable du projet (2010 à 2018)
Now works! Thanks a lot to both.
This is the complete code in case anybody could need it.
<?php ob_start();
echo '<p id="pagination">';
$plxShow->pagination();
echo '</p>';
$pages = ob_get_clean();
echo str_replace('<a href="'.$plxMotor->urlRewrite().'" ','<a href="'.$plxMotor->urlRewrite().'index.php?page1" ',$pages);?>
Regards.