← Back to WordPress upload

WordPress category fields and blocks

SiteTexter Category Content stores the main category text and image ID, provides shortcodes, and can automatically place blocks on category pages. Automatic placement is disabled by default.

Field separation: the standard WordPress description field stays a short description. Long TextCategory/TextCluster content is stored in custom term meta, by default catfieldtext-1.

Installing SiteTexter Category Content

The main method is manual ZIP installation in WordPress. On the SiteTexter Upload tab press ZIP folder, then install sitetexter-category-content.zip in WordPress.

  1. Open Plugins → Add New → Upload Plugin.
  2. Select the ZIP file, install, and activate it.
  3. Open SiteTexter → Settings in WordPress.
  4. Check text and image meta keys.
  5. Back in SiteTexter, press Check WP plugins to verify the REST route and synchronize field names. The check can activate an installed inactive copy.

WordPress settings page

  • Settings — category text and image field names.
  • Shortcodes — catalog, parameter builder, and copy buttons.
  • Styling — colors and sizes for presets.
  • Placement — automatic block position and order.
  • Preview — demo or real site categories.

Available shortcodes

Main text of the current category

[sitetexter_category_text]
[sitetexter_category_text show_on_paged="yes"]

Current category image

[sitetexter_category_thumbnail size="large"]
[sitetexter_category_thumbnail size="large" link="yes"]

Current category second image

[sitetexter_category_thumbnail-2 size="large"]

When no second image is stored, the shortcode returns no wrapper or broken image.

Image and main text as one block

[sitetexter_category_block]

Child categories of the current category

[sitetexter_child_categories preset="horizontal" columns="1"]
[sitetexter_child_categories preset="compact" columns="2" show_text="none"]

Top-level categories for the home page

[sitetexter_categories preset="cards" columns="3" parent="0"]

Styling presets

PresetUse
cardsCards with image on top.
horizontalImage left, text right.
compactSmall thumbnail and short text.

Automatic placement without Ad Inserter

On SiteTexter → Placement, enable automatic placement, choose position, content, and block order. If the theme does not output category description in the chosen place, use before or after post list.

Placement through Ad Inserter

Use Ad Inserter manually if you do not want to change the theme template. SiteTexter does not install or configure that plugin automatically.

<?php
if (is_category() && !is_paged()) {
    echo do_shortcode('[sitetexter_child_categories preset="horizontal" columns="1"]');
    echo do_shortcode('[sitetexter_category_block]');
}
?>
Do not insert the block twice. If a shortcode is already in the theme or builder, do not duplicate it through Ad Inserter.

Fallback without the SiteTexter plugin

Use this only when the main plugin cannot be installed. Register term meta fields through Code Snippets or functions.php, then output them with a separate Ad Inserter block. Do not mix field registration code with output code.

Post-setup checks

  • Main category text is visible on the first archive page.
  • SEO text is absent from paginated archive pages by default.
  • Thumbnail loads from WordPress media attachment.
  • Child category list includes only direct children.
  • Mobile layout collapses to one column.
  • Empty fields do not create empty containers.

Category text and image field names

The standard WordPress description is for a short description. Long TextCategory/TextCluster content is written to catfieldtext-1 by default. The first category image URL is written to category_thumbnail_id-1, and the second to category_thumbnail_id-2. SiteTexter also reads and updates the legacy category_thumbnail_id key, so existing images do not need to be migrated.

Names in the publication and SiteTexter blocks mirror each other. With SiteTexter Category Content installed, automatic synchronization sends them to the plugin through REST. All three field names must be different.

Without the plugin, a webmaster must register these term-meta fields and allow REST writes. Check WP fields verifies that the names exist and are writable. Do not rename keys after publication without migrating old data, because existing categories retain values under the old names.

An empty ImgName-2 preserves any second image already stored in WordPress. To update, open the bundled ZIP with ZIP folder and install it manually through the plugin’s Plugin update block on Settings or the standard WordPress plugin upload. The SiteTexter desktop app does not install or update the ZIP automatically. Only plugin files are replaced; settings and category data remain in the WordPress database.

SiteTexter block styles

Cards places images above card text and suits a home-page grid. Horizontal places the image on the left and text on the right. Compact uses a small thumbnail and short presentation for dense lists.

The Upload-tab choice sets the default and is synchronized with the plugin. A specific shortcode can select another preset and override it. Style changes presentation only; fields, categories, and uploaded images stay the same.