WordPress Development Stack Exchange Community Digest

Top new questions this week:

How would one modify the filtering Gutenberg applies to pasted content?

Note: I'm adding information I discover that seems to be leading to a resolution in the note. The Problem: When pasting content from outside of Gutenberg (e.g., Google Docs) into Gutenberg, some ...

filters block-editor  
asked by davemackey 3 votes

Custom post type: No posts found even if counter has a count

I have a weird bug where I created a custom post type, started to create posts in it and when I went back on the WP-Admin page listing all of the posts of that custom post type, no posts are found. ...

custom-post-types  
asked by Fredy31 2 votes
answered by Fredy31 3 votes

Sorting category products not working

I am using Avada theme and the sorting of the products on category page is not working. When i click on ascending and descending order the ordering of the products becomes random. Please provide me ...

categories woocommerce sort  
asked by Amol Bhandari SJ 1 vote
answered by Marcel CL 0 votes

combine Code 1 with Code 2

Code 1 - uses wp_list_categories to list product categories in columns of x categories up to a total of y, with a link to view all categories if there are more than y. Code 2 - Later realising i ...

php categories woocommerce jquery thumbnails  
asked by Whee 1 vote
answered by Sally CJ 1 vote

Show comments menu in dashboard only if the site has comment

I would like to hide "Comments" menu in Dashboard until the site doesn't have any comments. I tried to do this with this below code, but doesn't works: function remove_mainmenu_pages() { ...

php menus comments dashboard  
asked by Feriman 1 vote

get_terms <select> <option> adds slaces to the resualt

If I run this code I get the desired result <?php $terms = get_terms( 'call-type' ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ foreach ( $terms as $term ) { echo ...

custom-taxonomy terms forms  
asked by MFWebMaster 1 vote
answered by WP Updoot 1 vote

Custom Post Type template stored in plugin folder not showing in post attributes dropdown

I've created a plugin from which I want to load the template for my custom post type. I've used this guide to load the template from plugin Click Here! The templates are loaded perfectly in the page ...

custom-post-types templates  
asked by Arman Khan 1 vote
answered by WP Updoot 1 vote

Greatest hits from previous weeks:

Pagination when using wp_query?

<!-- query --> <?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $query = new WP_Query( array( 'category_name' => 'investor-news', ...

wp-query pagination  
asked by hgale 18 votes
answered by Dave Romsey 26 votes

to perform the requested action wordpress needs to access your web server. please enter your ftp

I'm following Changing File Permissions « WordPress Codex, yet when I'm try to update and/or install plugin and/or theme through wp-admin, I'm getting following: To perform the requested action, ...

plugins themes updates permissions  
asked by alexus 26 votes
answered by Narendra Solanki 50 votes

How do test if a post is a custom post type?

I am looking for a way to test if a post is a custom post type. For example, in, say, the sidebar I can put in code like this: if ( is_single() ) { // Code here } I want code testing for ...

custom-post-types conditional-content conditional-tags  
asked by Adam Thompson 105 votes
answered by Szymon Skulimowski 137 votes

How to display page content in a page template?

In my WordPress site, I made a custom page template, which contained a custom query [using WP_Query()]. With that query, I can perfectly get the posts of a certain category. But I want to show the ...

wp-query pages page-template  
asked by Mayeenul Islam 12 votes
answered by Mayeenul Islam 21 votes

How to fix this this error Fatal error: Call to undefined function...?

Fatal error: Call to undefined function wp() in /home/content/33/7211533/html/someSite/wp-blog-header.php on line 14 Can anyone figure whats the problem? I already update the wp-includes and ...

fatal-error  
asked by arnold 9 votes
answered by Rarst 7 votes

How to change the default registration email ? (plugin and/or non-plugin)

After a new user registration, WP sends out an email with the login / password, and a link to the login page. Is there a way to change this defaut email template? I'd also like to change the subject ...

templates users email registration customization  
asked by mike23 54 votes
answered by Bainternet 62 votes

How do I set a featured image (thumbnail) by image URL when using wp_insert_post()?

While looking through the function reference entry for wp_insert_post(), I noticed that there's no parameter in the array it requires which will allow me to set the 'Featured Image' for a post, ...

post-thumbnails wp-insert-post  
asked by Chris 62 votes
answered by Rob Vermeer 107 votes

Can you answer these questions?

multisite subdomain behind reverse proxy

I'm trying to run a wordpress multisite subdomain setup behind a reverse proxy to look like its sub directories. So the setup is like: www.mydomain.com/articles --> cms.mydomain.com ...

multisite directory subdomains proxy  
asked by Omiron 1 vote

Some images aren't shown on wordpress after installation on host

So I created a website on localhost with Xampp (been doing it multiple times). This time, right after I uploaded the files to namecheap host, some images aren't shown. The slider image isn't, some of ...

woocommerce images  
asked by lookingforanswers 1 vote
answered by GHOST 0 votes

How to delete 1000s of duplicated images in Wordpress?

We kinda have a wired problem that took me weeks of searching and testing, the problem is that while working on one of my client's Wordpress website I noticed that there are around 75k images in ...

woocommerce images wp-cli  
asked by Ali Rashidy 1 vote
You're receiving this message because you subscribed to the WordPress Development community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 110 William Street, 28th floor, New York, NY 10038

<3