Git Product home page Git Product logo

Comments (5)

bobbingwide avatar bobbingwide commented on June 23, 2024

Attempt to reproduce in cwiccer using: WordPress 5.9, ThisIs..., Category taxonomy eg s.b/cwiccer/category/blocks/

I had no problem using oik shortcodes and the term-description block.

from oik.

bobbingwide avatar bobbingwide commented on June 23, 2024

oik shortcodes weren't expanded with Twenty Sixteen, but were with ThisIs...
which includes the following code in functions.php.

do_action( "oik_add_shortcodes" );

from oik.

bobbingwide avatar bobbingwide commented on June 23, 2024

Explanation

In the live site for FOM, Yoast SEO was not activated.
When Yoast SEO is activated.

  1. The Edit Category admin page is enhanced. The Description field is displayed using TinyMCE, supportin an Add Media button and Visual and Text display modes.
  2. It adds support for shortcode expansion

The following hooks are attached to the term_description filter.

: 10   wptexturize;1 convert_chars;1 wpautop;1 shortcode_unautop;1 Yoast\WP\SEO\Integrations\Front_End\Category_Term_Description::add_shortcode_support;1

Yoast SEO adds its hook to both category_description and term_description.

from oik.

bobbingwide avatar bobbingwide commented on June 23, 2024

Now that Andrew's problem's been resolved I'm going to transfer this issue to oik.
It needs to hook into term_description using the same logic as for the_content

 add_filter( 'term_description', 'oik_do_shortcode', 0 );

does it also need to add

add_filter( 'the_excerpt', 'do_shortcode' );

when Yoast SEO isn't active?

from oik.

bobbingwide avatar bobbingwide commented on June 23, 2024

Developed for oik v4.6.0, released in oik v4.7.1

from oik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.