thanks!
]]>how can i turn off the background color on the prev and next? i managed to turn off the background color on the words but not on the hover. i do want the hover on the page numbers.
]]>I want to show the other posts on CPT in the Next/Prev section of my custom singular page. not show any taxonomies (Tag, Category, custom Tag, custom Category)
In this regard, I call the Next/Prev.php file for CPT layout and change in codes in accordance with the following method:
But not work
// Only display for CPT
if ( 'cpt' != get_post_type() ) {
return;
}
// Term
$post_type = get_post_type( 'cpt' );
$post_type = $post_type ? $post_type : 'cpt';
// Args
$args = array(
'prev_text' => '<span class="title"><i class="fas fa-long-arrow-alt-left"></i>'. esc_html__( 'Previous Post', 'oceanwp' ) .'</span><span class="post-title">%title</span>',
'next_text' => '<span class="title"><i class="fas fa-long-arrow-alt-right"></i>'. esc_html__( 'Next Post', 'oceanwp' ) .'</span><span class="post-title">%title</span>',
'in_same_term' => true,
'taxonomy' => $post_type,
'screen_reader_text' => esc_html__( 'Continue Reading', 'oceanwp' ),
);
Thanks in advance
]]>First of all – I must say that you created a great plugin!
I have a problem with a canonical tag in rel=”next”.
The problem occurs when I am on the following path on my website:
DOMAIN.COM/?post_type=post
What actually happens in this case, is that the link (the value) in rel=”next” is a wrong link that makes 301 redirect.
The value in rel=”next” based on the URL link of the first result and contain “/page/2”, for example:
I am on:
DOMAIN.COM/?post_type=post
The link of the first result is:
DOMAIN.COM/dummy_page
The canonical (rel=next) will be:
DOMAIN.COM/dummy_page/page/2
How can I solve it?
I am use pojo leader theme
Thanks for your time!
]]>The opacity script does not seem to run in mobile view and the Prev Next arrows do not fade. Works fine in desktop mode.
Any suggestions?
Thank you,
Sandra
https://www.timryansmith.com/#/page/6ad8/new
Anyone know a plugin or a way to do this?
]]>I’m stuck with a problem building my wordpress website and I can’t figure out what to do about it.
Currently I’m showing 2 posts form the category ‘News’ at the page ‘News’. At the bottom of this page I want a Prev/Next button that shows the next or previous 2 posts from the same category.
So I was searching how I coud do that.
So I found this code:
previous_posts_link('Newer Entries ?')
next_posts_link('? Older Entries');
This displays a link like I was expecting.
But both links are not working (page reload, but same entry’s shown).
I also found this in this codex:
posts_nav_link('∞','Go Forward In Time','Go Back in Time');
Also at ‘Setting’ > ‘Reading’ I had set max posts to 2.
I don’t know how I can handle this.
Is there a way to show the next 2 (or ‘X’) posts from the same categorie when a button ‘Next’ or ‘Prev’ is pressed?
Thanks!
]]>Anyway the problem is when I click on prev / next. It doesn’t fetch the rights posts. or they’re not update.
try at
www.martinlindelof.com
Im really new at PHP and wordpress but I did it this way.
<!– dont show posts from quickies and peeps –>
<?php
if (is_home()) {
query_posts(“cat=-12,-17”);
}
?><!– do the 1st Loop –>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
and the 2nd loop in index.php
<div id=”quickie”>
<?php
$quickies = new WP_QUERY();
$quickies->query(‘cat=12&showposts=20’);
?><!– do the 2nd Loop for quickie posts –>
<?php while ($quickies->have_posts()) : $quickies->the_post(); ?><div class=”post”>
<div class=”postop”><div class=”pheadfill”> </div></div><div class=”storycontent”>
<div class=”thecontent”><?php the_content(); ?></div>
<div class=”reset”> </div>
</div><!– end STORYCONTENT –>
</div><!– end POST –><?php endwhile; ?>
</div><!– end QUICKIE LIST .. –>
and the 3rd colu,mn is in the sidebar
]]><!– PEEEEEEPS –>
<div id=”nav”>
<div class=”p-sideitem”>
<div class=”p-boxhead”><div class=”p-headfill”> </div></div><div class=”p-boxbody”>
<h2>People</h2>
</div></div>
<?php
$peeps = new WP_QUERY();
$peeps->query(‘cat=17&showposts=20’);
?><?php if ( $peeps->have_posts() ) : while ( $peeps->have_posts() ) : $peeps->the_post(); ?>
<div class=”p-sideitem”>
<div class=”p-boxhead”><div class=”p-headfill”> </div></div><div class=”p-boxbody”>
<?php the_content(); ?>
</div></div>
<?php endwhile; endif; ?>
</div> <!– end PEEPS –>