Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Fernando Briano

    (@fernandobt)

    I think I remember there used to be a way a long time ago, but it seems I’ve removed that feature with recent iterations. I’ll look into it and release a new version so that you can choose an ordered list to list the posts.

    Thanks for reporting this!

    Regards,

    Thread Starter Adam Rubinstein

    (@gourmetbooks)

    Thank you! I’d love-love-love to see it.

    It should also be possible by copying the default.php template from the plugin folder into your-theme/list-category-posts/ol.php (ol for example) and then simply replacing there the ul with ol in the two lines
    $lcp_display_output .= '<ul class="lcp_catlist postlist">';
    and
    $lcp_display_output .= '</ul>';

    and then you just need to add the parameter template=ol into the shortcode whenever you need an ordered list.

    More information about templates:
    http://wordpress.org/plugins/list-category-posts/other_notes/
    at the bottom and in the plugin folder itself.

    Thread Starter Adam Rubinstein

    (@gourmetbooks)

    Thanks, @sofian777. Unfortunately, that’s a little too code-intensive for me, and I’m more likely to break it than bend it. But if someone else benefits from your suggestion, right on!

    Actually it is not much about code, you could enjoy your list in ten minutes, even if you dont have a clue about code.
    1. Copy default.php from your WP installation wp-content/plugins/list-category-posts/templates/default.php to your desktop
    2. Open in text-editor and replace in Line 41 and 92 the ul with ol
    3. Save as ol.php and copy it into your theme folder in a folder called list-category-posts, so it is in wp-content/themes/your-theme/list-category-posts/ol.php

    Thats all already. Now you can use [catlist … template=ol] whenever you need an ordered list. Of course you can also wait a bit, i dont want to push you, just made another more structured post to see its just a few minutes time to spend. Have fun whether breaking or bending…

    Thread Starter Adam Rubinstein

    (@gourmetbooks)

    Thanks! I followed your directions precisely, and I’m sure ol.php is right, but I don’t see it creating an ordered list in the front end. I put it in my Twenty Fourteen child’s folder.

    For kicks, I also tried

    • wrapping “” around template=ol
    • adding /list-category-posts/ol.php to my parent theme’s folder
    • replacing default.php in the plugin’s folder with a modified default.php

    No dice. Am I missing something?

    Thanks!

    Maybe the CSS of 2014 is kicking the numbers out, because for sure if you overwrite the original in the plugins folder, it will get the right code.

    If you check the source code of your frontend, is it using ol there instead of ul?
    If you manually create a page with an OL, is it displaying it correctly?

    (if it is an online site you can send the link to have a look as well)

    Thread Starter Adam Rubinstein

    (@gourmetbooks)

    Hrm. Looking at the source, it’s being output as a UL still.

    Here’s the site: http://muck.dredgecycle.com

    Thanks again!

    I can only make another guess. When i try to open
    http://muck.dredgecycle.com/wp-content/themes/DredgeBook/list-category-posts/ol.php

    it gives me page not found, but actually should show something or an error. Did you put the ol.php in a subfolder called list-category-posts of your child theme?

    Thread Starter Adam Rubinstein

    (@gourmetbooks)

    Crap, I thought I had. I just put it in. Sorry for the extra step, and thank you so much, again, for the help!

    Edit: Okay, it’s definitely in a folder (http://gyazo.com/4ad69625a5d3731e3c24e9f215c956e6), but nothing shows when you follow the link.

    Glad your wish fulfilled πŸ˜€

    That it is not showing anything is because the php script itself is not doing anything if called directly, thats fine.

    The source code of your site now gives out OL, so it works and the problem is somewhere else

    Thread Starter Adam Rubinstein

    (@gourmetbooks)

    You might have seen my post before I edited it. It doesn’t work yet. πŸ˜‰

    Hihi, now our edits overlap πŸ™‚

    So it was OL when i checked it one min ago, now it is UL again.
    Keep it where it was because it was fine, it should be the CSS to have a next look…

    Thread Starter Adam Rubinstein

    (@gourmetbooks)

    Good to know. I’ve tried targeting the following:

    • ol
    • ol.lcp_catlist
    • .widget ol.lcp_catlist

    with this:

    { list-style: decimal!important; }

    And none of them work. Ugh.

    For kicks, I made a page for the shortcode that wasn’t wrapped in the other shortcode (jQuery Expanding Box), and it works fine there. So I’m assuming something in that other plugin is stripping out <ol> tags.

    Off to bother that developer now!

    can you please tell me where exactly you want to see them, because now i realize that the only lists i find in the source code are in an secondary sidebar which is not shown to me. and from the three lists only the first one has OL, the next two have UL. But as mentioned i dont think that they are visible to me at all. It seems you have them in a textwidget in a sidebar that is not displayed, which is confusing for me. Or do you speak about a subpage?

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Making an ordered list of posts’ is closed to new replies.