Dear @poelzi thank you for your input. Please provide your WordPress version number.
Thread Starter
poelzi
(@poelzi)
My WordPress version is 4.7 (it is also located in the “topic info”).
It works fine in 4.7 with the twenty seventeen theme
May I know which theme you tested it on?
Thread Starter
poelzi
(@poelzi)
I am working with the theme “Chosen“.
I will also check the twenty seventeen theme later…
The problem is that the theme template escapes HTML in the previous/next titles.
For this plugin to work with this theme you should edit the theme code.
The file to edit is ./wp-content/themes/chosen/content/post-nav.php
You can also edit the post-nav.php page from the theme editor.
In the bottom of the page change this code
<nav class="further-reading">
<div class="previous">
<span><?php echo esc_html( $previous_text ); ?></span>
<a href="<?php echo esc_url( $previous_link ); ?>"><?php echo esc_html( $previous_title ); ?></a>
</div>
<div class="next">
<span><?php echo esc_html( $next_text ); ?></span>
<a href="<?php echo esc_url( $next_link ); ?>"><?php echo esc_html( $next_title ); ?></a>
</div>
</nav>
to
<nav class="further-reading">
<div class="previous">
<span><?php echo esc_html( $previous_text ); ?></span>
<a href="<?php echo esc_url( $previous_link ); ?>"><?php echo $previous_title ; ?></a>
</div>
<div class="next">
<span><?php echo esc_html( $next_text ); ?></span>
<a href="<?php echo esc_url( $next_link ); ?>"><?php echo $next_title ; ?></a>
</div>
</nav>
-
This reply was modified 7 years, 11 months ago by avastava.
Thread Starter
poelzi
(@poelzi)
@avastava it works. Thank you for your fast help!