[WordPress] How to branch with custom post taxonomy term

Code <?php if (is_object_in_term($post->ID, ‘[taxonomy]’,'[term]’)){ ?> <?php } else { ?> <? […]

Read more

[WordPress] How to reflect CSS in the visual editor

Code functions.php add_editor_style(); add_editor_style(“editor-style.css”);; CSS wp-content/themes/[theme fol […]

Read more

[WordPress] How to prevent grandchild category from being created

Code functions.php function my_admin_style() { echo ‘<style> option.level-1{ display:none; } </style& […]

Read more

[WordPress] How to output a short code in a theme file

This section introduces how to output a short code in a theme file. Code <?php echo do_shortcode(‘[shortcod […]

Read more

[WordPress] AMP page and other page branching method

Introduce how to branch AMP pages and other pages. Plugin https://ja.wordpress.org/plugins/amp/ Code if(functi […]

Read more

[qTranslate-XT]Build Google XML Sitemap, including pages with all different languages

This is an introduction to sitemap.xml generation plug-in that supports other language sites created using qTr […]

Read more