Pagination hitting 404 page on /page/4

Just in case anyone ever stumbles across this, I found the solution. First step was to create an archive.php page In there I would access the loop. The in functions.php I have a category rewrite filter to update the category rewrite rules to use the following example url index.php?wpdmcategory=category-name&paged=2 when I hit /category-name/page/2 Previously, it … Read more

Stop wordpress from requesting external jquery from googleapi

WordPress doesn’t use externally hosted jQuery. In fact, as far as I’m aware, WordPress core does not register any externally hosted scripts. WordPress bundles its own version of jQuery, and you can enqueue the bundled version by just enqueueing the handle jquery: wp_enqueue_script( ‘jquery’ ); Or by specifying ‘jquery’ as a dependency: wp_enqueue_script( ‘my-script’, ‘/path/to/my-script.js’, … Read more

wp-admin send 404 error

…what @sally_CJ said in the comment to your question. In general, if a plugin is causing problems, then remove the plugin. If you can’t do that with admin/plugins, then use your hosting File Manager or FTP to rename that plugin’s folder, which will effectively disable it. Also, ensure that PHP is at least version 7.2, … Read more

Change text string in a plugin

You are able to change texts using a translation file. By default, plugin texts are in the English language. Even your site language is English, You are able to generate a new language file and change texts on it. Imagine that the plugin folder name (plugin slug, plugin text domain) is my-plugin and Your site … Read more

Loop in elementor custom widget not working

I would recommend switching to a standard post loop: $args = [ ‘posts_per_page’ => 12, ‘category_name’ => ‘featured’, ‘orderby’ => ‘post_date’, ‘order’ => ‘ASC’, ]; $query = new \WP_Query($args); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); ….. } \wp_reset_postdata(); } Note that I: switched to modern PHP array syntax of [] … Read more