I am extending discussion from one another article posted on the same website → Where should I use post_class()?. This is the portion from content-single.php → Where should I put the post-class? in the h2 tag that will print the title or on the parent article tag, which has one other div,which is a sibling to h2, title class? <h4><?php the_title(); ?></h4> <p><?php the_content(); ?></p> I browsed this link, but still, I could not get the clarity → https://developer.wordpress.org/reference/functions/post_class/ REQUIRED: …
I have the following code which is flagging a warning that I've been asked to fix by my theme reviewer. WARNING All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$fontListStr'. The $fontListStr in the warning message refers to the final line of the following code: foreach( $this->fontList as $key => $value ) { $fontCounter++; $fontListStr .= '<option value="' . esc_attr($value->family) . '" ' . selected( $this->fontValues->font, $value->family, false ) …
I was running my theme through Theme Check to check for WP.org compliance and it is giving me a warning that the theme is in the wrong directory. The specific warning is below: WARNING: Your theme appears to be in the wrong directory for the theme name. The directory name must match the slug of the theme. This theme's correct slug and text-domain is the-m-x. However, my theme's text domain is set to the-mx, without the dash in between. In …
Theme Check Plugin is throwing some errors → WARNING: fsockopen was found in the file inc/widgets/MCAPI.class.php possible file operations. Line 2862: $sock = fsockopen('ssl://'.$host, 443, $errno, $errstr, 30); Line 2864: $sock = fsockopen($host, 80, $errno, $errstr, 30); reference link → https://github.com/rainlab/mailchimp-plugin/blob/master/vendor/MCAPI.class.php Is there a function in WordPress to replace this and make it look like WordPress and remove the error w/o making any changes in the theme or website functionality.
I have a theme on WordPress theme review queue and I'm using the below code to change excerpt length. function theme_slug_excerpt_length( $length ) { return 50; } add_filter( 'excerpt_length', 'theme_slug_excerpt_length', 999 ); Now theme reviewer ask to apply that limit on only front end, which is it should not impact on admin side. So will this below code work? function theme_slug_excerpt_length( $length ) { if ( is_admin() ) { return $length; } return 50; } add_filter( 'excerpt_length', 'theme_slug_excerpt_length', 999 ); …
I am wondering if there is a way to make changes to a theme that has been submitted for review and is waiting in trac. I see in this ticket, that it may be possible, but I'm not sure how: http://themes.trac.wordpress.org/ticket/12476#no1 I noticed a few days after submitting my theme that I had left an extra php file in the folder that isn't needed. http://themes.trac.wordpress.org/ticket/12497 I also notice a minor error in the style sheet - I put the version …
REQUIRED: Comments are displayed as "Off" while they aren't in wp-admin. Comment form is not displayed in these cases, while it is when a unit test post already has comments. i have installed the Test data . and on some post and comment test post pages. these pages had some comments. and there is also a Comment form under all the comments. why it notices me,"Comment form is not displayed in these cases, while it is when a unit test …
According to the codex Themes are required to use theme-slug (or a reasonable facsimile) as textdomain for translation Does this mean that my theme needs to include a textdomain even if my theme doesn't support translation? ... and also is there any harm in including a textdomain in style.css if there are no translation options.
I know that the theme review team has been active for about one year now. Thanks to their hard work and diligence, the themes in the repo are much better now than ever before. However, I have noticed that there are still older themes in the repo that, at first glance, probably would not pass the review if submitted or updated today. Is there a date that anyone can point to where we might want to be wary of any …
I have created one theme. The theme was denied today for the following reasons: Theme Review: Themes should be reviewed using define('WP_DEBUG', true); in wp-config.php Themes should be reviewed using the test data from the Theme Checklists (TC) wp-config.php is the WordPress setting file. How do I alter my custom theme? the theme registers some custom functionality in the function warmHome_setup() however this function in not hooked so the functionality is not available. Recommend hooking the theme to the after_setup_theme …
A followup to my previous question about my theme that was rejected for the WordPress.org theme directory: RECOMMENDED: No reference to the_post_thumbnail() was found in the theme. It is recommended that the theme implement this functionality instead of using custom fields for thumbnails. RECOMMENDED: No reference to add_custom_image_header was found in the theme. It is recommended that the theme implement this functionality if using an image for the header. How do I correct it? This is my function: // thumbnail …