All posts in category 'Admin'

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 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

Reduce canonical WP

Something basic with the master at localhost/wp/wp and distributed around to the various default cloud sites

Category: Admin
Rendered by content.php

Move away from block editor

Now it's clear that I don't need full site editing and only need the block editor for the Home and Blog pages, convert all other pages and posts to the classic editor.

Category: Admin
Rendered by content.php

Different menus on different pages

If these can be made to work smoothly I may not need a hybrid site, like my new garden, but look carefully at Planting Plans. This may be another case like CAS membership form with payment where I can use a shortcode to basically dump code on a WP page and not worry about registering […]

Post with a gallery

The gallery shortcode is much more concise than raw HTML, but there's no control over thumb and slide captions beyond what's in the media library. Moving sites around is more of a pain because the image ids are (usually) different in the different sites.

Category: Admin
Rendered by content.php

Post with an image

Raw HTML seems to be the way forward. This one doesn't pop-out: Hellebores This one does. As usual, you have to enter the img url twice: Hellebores There's inevitably some fiddling required when sites are moved around, but it's probably less than the single-image gallery method.

Category: Admin
Rendered by content.php

Setting 'allow comments' flag

You can't seem to do this from the normal edit page, but have to go to the quick edit page. Irritating. OK I've found it now. Check 'Discussion' in screen options.

Category: Admin
Rendered by content.php
Rendered by index.php