[Open Graph and Twitter Card Tags] Error handling [WordPress plugin]

This section explains how to deal with errors in WordPres plug-in “Open Graph and Twitter Card Tags&#822 […]

Read more

[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

[QTranslate-XT] How to branch by language

Code <?php if(qtranxf_getLanguage()==’ja’): ?> <p>日本語</p> <?php elseif(qtranxf_getLanguag […]

Read more

[WORDPRESS] How to get and display article update date

Code single.php <?php if ( get_the_date() < get_the_modified_date() ) : ?> <time datetime=”<?ph […]

Read more

[WORDPRESS] How to apply CSS to a Custom post editing screen in the Admin panel

Code functions.php if($_GET[post_type] == ‘[Custom post name]’){ function admin_style_custom() { echo ‘ [CSS] […]

Read more