Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tdude/site-tweaks/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Site Tweaks (WordPress plugin)
Small site-specific plugin for displaying cards from a specific post category in the Gutenberg loop block. Each card can have an arbitrary URL if needed.
Features
1) Kort-URL (Card URL) for posts
Adds a Gutenberg sidebar panel on posts: Kort-URL.
- If set, post “cards” (Query Loop / Post Title / Featured Image / Read More) will link to this URL.
- If empty, cards link to the normal single post permalink.
Meta key: _site_tweaks_card_url.
2) Query Loop-kategorifilter
Lets you restrict and switch categories for Query Loop blocks via ?cat=....
What this plugin does
Category override logic
When a (targeted) Query Loop block renders:
- If URL has
?cat=<ID>and<ID>is allowed, it uses that category. - Else if a default category is configured, it uses the default.
Hardening:
- Only
publish no_found_rowsenabled- sticky posts ignored
Setup
- Activate:
WP Admin → Plugins → Site Tweaks. - Configure:
WP Admin → Settings → Site Tweaks.
Target which Query Loops are affected
- All Query Loops: enable “Tillämpa på alla Query Loop-block”.
- Specific Query Loop only: add CSS class
filtered-loopto the Query block.
Front-end usage
Example: /start/?cat=123
Find category ID: WP Admin → Inlägg → Kategorier then open the category and read tag_ID from the URL.