alt tags of the images are not saving/emtpy
Try changing the theme to wordpress’ default theme, twentyseventeen. It could be an issue with the theme
Try changing the theme to wordpress’ default theme, twentyseventeen. It could be an issue with the theme
After trying a few image optimization plugins resmush.it did the trick. If you reduce the JPG quality to 70% Google should stop complaining and images still look good. The plugin is even free. Of course your images also have to be scaled properly.
Everything depends on how you build your frontend. The most important tip is, that you make sure, that bots can crawl and get access to all of your JS, CSS etc. files. As I understand, basically with REST API you build your DOM and your actual content is not in the source code. So just … Read more
You just need to compare values of get_the_post_time() and get_the_modified_time(). if ( get_the_post_time() == get_the_modified_time() ) { // Published on… } else { // Modified on… }
In general it is much better to handle redirect on the PHP side. (assuming is is implemented by semi competent developer) It is more flexible and uses less overhead. Specifically to the question, the set of wordpress rules will handle all URLs, therefor your rule is too late and you should move it to be … Read more
The error 404 happens because you haven’t registered the %school% rewrite tag — you need to register it so that WordPress will know what to replace it with when generating the rewrite rules — i.e. it doesn’t remain as %school% in the generated rewrite rules. And you can register the tag using add_rewrite_tag(): // Add … Read more
You’ll need the Header set …. directive, but to set it conditionally based on the URL. One way of doing this is to use mod_rewrite to set an environment variable (eg. ROBOTS_INDEX) when your URL criteria are met (for the URLs you want indexed) and use the env= argument to the Header directive to conditionally … Read more
RewriteRule ^stores/(.*)/$ /stores/$1-coupon-codes [R=301,NC,L] You can perhaps use a negative lookahead assertion to exclude URLs that already contain -coupon-codes from being redirected again, thus preventing a redirect-loop (which I assume is what’s happening here). For example: RewriteRule ^stores/(?!.*-coupon-codes)(.+)/$ /stores/$1-coupon-codes [R=301,NC,L] The negative lookahead (?!…) causes the pattern match to fail when the URL already contains … Read more
Have you filled out the “alt” tags properly. The chances of being indexed are less if the tag is not included. Additionally, the file name for the image should not be “quor7b.jpg” unless it’s a photo of a Quor7b. The file name should also reflect the image (e.g. rose.jpg).
User needs it in his footer so I think you should use conditional page logic. Something like: If ( is_single(postID)) { //insert tracking code } You can also use the post title or post slug, but id is the most reliable. Old Answer I would consider writing a shortcode. Add the following to your functions.php … Read more