Changing order title and featured image in blog post (Astra theme)
Changing order title and featured image in blog post (Astra theme)
Changing order title and featured image in blog post (Astra theme)
The wp_title function is meant to be used in things like breadcrumbs where you would want something like My Blog » My Category » My Post. As such the function allows you to prepend something to your title. By default it prepends ». If you just want the title of your post or page use … Read more
WordPress 5.8 update problem custom theme styles are overridden by core styles common.min.css
There are technically two ways to build themes now. One is the old standard way, where you have PHP templates (that follow the traditional template hierarchy). The other is block based themes that use blocks for everything. My recommendation is to stick with traditional for now. Full Site Editing, which is part of the block … Read more
The short answer? Theme options page + secondary, conditionally-loaded CSS files = Joy in Mudville.
Your best bet here would be a specialized RSS feed set up on your server. You could bundle a dashboard widget with your theme that automatically pulls this RSS feed and displays the thumbnails and a description of the new skins that are listed on your site. Step 1: RSS Feed First, decide what information … Read more
The best resources available are: The Codex – Most of the functions and tools you’ll want to use are documented there, as well as examples and code snippets that you can use in your own system. PHPXref – There are a lot of different systems out there, I just linked to the first one I … Read more
The callback for a meta box gets the current object (post, comment, link, … depending on what you’re editing) passed as the first parameter. So in your meta box handler you can read this first argument and access it’s post_content to get the content.
That works, yeah. Slightly off topic, FYI: there are a few defines, namely wp content dir and url, that allow to organize sites like so on a development server: /stable (contains wp stable) /devel (contains wp trunk) /content (contains uploads, themes, plugins, etc.) This allows to easily test forward and backward compatibility of themes and … Read more
Under Media / Edit, there’s a means to list them, so I suggest you reuse the existing API. Else, a general method, which works anywhere, is to run a db query with a left join: select ID from foo left join bar on whatever where condition and bar.ID is null;