All posts

Select posts page

This caused trouble in the Astro sites which source content from WordPress sites like this. The 'Select posts' page is a block page containing selectors for By date — WP Archives block. Works in Astro. By category — WP Categories list. Doesn't work in Astro. By author — ncvp_author_list shortcode because WP doesn't provide a […]

Sort out RSS feed

Have four VScode windows up for four sites astro-blog. Native site from content collection called 'blog' astro-local. Local WP fed site. Deployed to Cloudflare directly with % npm run deploy astro-test. First site. Local without content collection astro-wpress. Cloud fed WP site Compare and contrast these files /astro.config.mjs /src/layouts/Layout.astro src/pages/rss.xml.js Issues found astro-blog. Didn't have […]

Subtle changes

Applied the standard fix to the database to set everything to utf8mb4_general_ci. That made the ASCII art in the post about Astro routing work. Renamed the database to admin2_ncvp_me_wp. Had to apply admin2_17926 user privileges to new database. I don't remember having to do that before. Re-applied box-sizing: border-box to ncvp-class style.css. That fixed the […]

Categories & Tags

Categories and tags are the two default WordPress taxonomies used to organise content, with categories serving as broad, mandatory groupings (like topics in a library) and tags providing specific, optional keywords for granular details. Categories are hierarchical (parent/child), while tags are not. In practice individual sites will have their own guidelines for how to use […]

Sort out astro-wpress routing

This is all about the mapping between site-url/xxxx/yyyy/zzzz and Astro pages. Even though there are no files in the /src/pages tree, the magic files [slug].astro, [...path].astro perform the same sort of rôle as if there were. Add these to /src/: └── pages    ├── author    │   └── [slug].astro    ├── category    │   └── […]

Source of media files

Move images and other media files which have to be loaded by URL to the cloud so the URLs don't have to be fiddled with as the site is copied around. Is it important that these external files come from SSL protected sites? Here's one from wikimedia.org

Rendered by index.php