Show posts by a custom post author
Show posts by a custom post author
Show posts by a custom post author
Thank’s anmari, A tad over my level of php knowledge, but manage to sort it out looking at it in another way. Sorted with changing the “global $submenu” and the code: /** * Makes the “All” sorting and “publish” default on edit screen for custom post types */ function default_post_sorting(){ global $submenu; // Administrator users … Read more
Show certain posts in a LIST format that members have been granted access to
Posts gathered from WPEMatico feeds are being mixed in different languages. Polylang is used for language separation
Which hook/action will help me solve my problem?
Ajax post filters not working
OK, so here’s the first time I’m going to recommend a plugin as a solution… But it’s really the easiest solution in this case, I guess… There’s a great plugin called Redirection in plugin repository (https://pl.wordpress.org/plugins/redirection/). It allows you to define all kind of redirections. You can decide if it should be 301 or 302 … Read more
In the following code you could add a class specifically based on the position in the loop: <?php /* Start the Loop */ $i = 1; $class=”first-class”; while ( have_posts() ) : the_post(); if($i % 4 == 0){ $class=”second-class-“.+$i; } echo ‘<div class=”‘.$class.'”>’ get_template_part( ‘template-parts/content’, get_post_format() ); echo ‘</div>’ $i++; endwhile; ?> This is essentially … Read more
How to bulk-untag multiple posts?
i am testing your code on my dev site and it returns only 1 result (although there are 3 items in the same category), so your code seems to be fine, maybe there is some other filter applied which ignores the posts_per_page param. You can try using suppress_filters => true param in your WP_Query args … Read more