Apply Style variation to specific pages

According to the documentation on Style Variations, it would not appear so. The intent of Style Variations is to be “skins” for your theme and site, rather than for individual pages. However, CSS can be used to apply different styles to specific pages: the <body> tag of each page has classes that can be used … Read more

Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1

Newer themes including Twenty Twenty Four use block themes/Full Site Editing. This means all the templates are created with HTML and theme.json, not using PHP templates at all anymore. You can read up on bloc themes, and see ways to create a “hybrid theme” which uses both PHP and HTML, here – https://fullsiteediting.com/courses/full-site-editing-for-theme-developers/

what use have double styles in index.html?

The <!– wp: tags are how the WordPress editor internal api control what has been generated on the page and it contains the data that is generated or controlled by the settings panel of the editor. In general, those settings are directly converted to some html / style that you see on the page but … Read more

Upgraded php & wordpress but theme broke

<?php the_post_thumbnail(thumbnail); ?> should be <?php the_post_thumbnail( “thumbnail” ); ?>. thumbnail is not a defined constant, and the updated version of PHP is no longer converting undefined constants into strings for you. It appears that PHP changed the “undefined constants” message from a notice to a fatal error sometime around version 8.

query loop “inherit query from template” prevents setting sort order

Given your detailed description, it seems you’ve taken several steps to address the issue of sorting your archive pages in WordPress. The fact that changing the “order”:”desc” to “asc” in the archives.html file of your theme didn’t yield the desired result suggests a deeper issue. Try this in your functions.php file: function wpb_modify_category_query( $query ) … Read more