Then, click the Copy button for your custom shortcode.

A widely recognized collection for machine learning tasks.
Post Reply
shaownhasane
Posts: 121
Joined: Mon Dec 23, 2024 2:30 pm

Then, click the Copy button for your custom shortcode.

Post by shaownhasane »

Then, select PHP snippet as the code type.

Hosted by WPCode and
One-click use in WordPress
Then, scroll down to the "Insert" section gansu phone number and select "Shortcodes" as the input method.

You will notice that WPCode automatically displays the shortcode. However, you can create a custom shortcode to make it easier to remember.

Shortcode insertion method

You can now display category images on archive pages using this shortcode.

Add shortcode in website editor

If you are using a block theme that supports the site editor, go to the Appearance editor page to launch the site editor.

Edit archive templates in the site editor
Here you can add a shortcode block before the archive title block.

Now paste the shortcode you copied earlier into the shortcode block.

Add shortcode in site editor
Don't forget to save your changes to apply them. You can now visit the category archive page to see the shortcodes in action.

Don't worry if the image doesn't look right. We'll show you how to fix it with custom CSS later.

Category icon shortcode preview
Option 2. View category images manually
For this method, you need to add custom code to your WordPress theme files.
Post Reply