Question
So I've read all the stack exchange posts on this, and I feel like what I have, based on what I've read, should be working. I'm a little confused as to why it isn't. $args = array( 'post_type' ...
0
1 hour 0 Answers 1 views

Question
I have custom post type of reviews, I want to limit the number of posts on the page, the standard methods do not work, please help! <?php /* Template Name: reviews */ $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) ...
0
5 hours 0 Answers 3 views

Question
I have a link http://www.example.com/my-account/view-pet/?pet-page=2 I want to change it to either http://www.example.com/my-account/view-pet/pet-page/2 or http://www.example.com/my-account/view-pet/2 Here's what I have tried to so far function wpse12065_init() { add_rewrite_rule('view-pet(/([^/]+))?(/([^/]+))?/?', 'index.php?pagename=my-account/view-pet&pet-page=$matches[2]', ...
0
7 hours 0 Answers 5 views

Question
On post/page editing screen, I want to call my functions as soon Gutenberg editor/whole page is fully rendered and visible. On WP 5.2.2, I have tried jQuery(document).ready(function () {}); and wp.domReady(function() {}); but both of these functions are called before ...
0
7 hours 0 Answers 4 views