• I recently updated to WP 6.3.1, and now it looks like the list_pages attribute will no longer work. I use the shortcode to make ordered lists <ol>. I have shortcodes like [child-pages list_type=”ol” depth=”1″] everywhere, but they produce unordered lists now since updating. I tried to manually edit the default in the plugin, but that did not work either. I think the issue is probably deeper than my understand of how your plugin works.

Viewing 1 replies (of 1 total)
  • Thread Starter fredsbend

    (@fredsbend)

    I guess I had the exact same issue 7 years ago.

    Except this time, the plugin needs to be changed in the following way:

    Line 46 in the plug in code can be changed from:

    $out = '<' . sanitize_key( $atts['list_type'] ) . ' class="' . esc_attr( $atts['class'] ) . '">' . $out . '</' . sanitize_key( $atts['list_type'] ) . '>';

    To:

    $out = '<ol class="' . esc_attr( $atts['class'] ) . '">' . $out . '</ol>';

    This hard codes all lists made by this shortcode to <ol>. You can alternatively add the following to your CSS and add a class to the lists, as the linked answer above notes.

    ul.list-pages-shortcode {list-style-type: decimal;}
Viewing 1 replies (of 1 total)
  • The topic ‘list_type no longer working’ is closed to new replies.