Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Bob

    (@prasunsen)

    I’m afraid we have no option to reorder lessons yet. It’s available only in pro for the moment.

    Thread Starter flyfisher842

    (@flyfisher842)

    I have been putting the next llnk on each post even if it is not needed. So far the courses seem to be in correct order when I start thru them. They just don’t display in the correct order on the admin screens.
    I do like you have stayed with the base WP edit, draft and publish functions. Makes it much easier to use the plugin compared to others I have tested.

    flyfisher842, you can use this shortcode to order lessons by post date:

    [namaste-course-lessons 0 0 post_date ASC]

    Alternatively you can hack the definition of namaste_lesson post type to include page attributes, so that you have page order field for each lesson. Then you’ll be able to define in the shortcode sorting by the order field.

    P.S. If you are not a developer, I’d recommend you to buy the Pro version, as I just checked it’s demo and the reordering page looks pretty neat:

    https://sandbox.pimteam.net/wordpress/wp-admin/admin.php?page=namastepro_reorder

    (user sandbox and pass 123456)

    Plugin Author Bob

    (@prasunsen)

    Hey vloo, thanks for the ideas ??

    Thread Starter flyfisher842

    (@flyfisher842)

    I just changed the published time so the post ids were in order. Then all the namaste links came out ok.

    I’m trying to implement this process. I’ve changed my lesson post dates so that the first lesson is on the first day of the month and so on but where do I put the short code [namaste-course-lessons 0 0 post_date ASC] in order to get them to order properly?

    Thread Starter flyfisher842

    (@flyfisher842)

    Make a separate page titles Course Summary or such. Put the code on the page and publish. With the code, if you published your lessons in date order, you should not need to change anything for the code to work as stated. You could try post_id also to see if that puts them in order. I like id better than date for ordering lists but that is me.

    Plugin Author Bob

    (@prasunsen)

    post_id won’t work however, the field name is “ID”.

    On a side note, we have changed some of the default orders (but not this one) from post_title to ID. But maybe we’ll just have to include a setting so people can choose – I’m sure I’ll see a new support thread from someone who doesn’t like it now that ID is the default.

    Thread Starter flyfisher842

    (@flyfisher842)

    you are probably correct. Why not consider this. Put a field called order or similar with an input box by each lesson. That way people could more easily order the lessons how they wanted them. And you don’t have to worry about ID, post_date and such. Then allow sorting on the order field ASC or DESC with ASC the default. What do you think of this,

    Plugin Author Bob

    (@prasunsen)

    It’s good idea but not easy to program because we shouldn’t add DB field to the posts table. We’ll have to add it in meta which means we’ll have to join the meta table on each query that selects lessons. I’ll think on your suggestion anyway, thanks.

    Thread Starter flyfisher842

    (@flyfisher842)

    Try Advanced Custom Fields plugin and then the Ultimate shortcodes plugin. Might make this easier.

    Why not make a custom table for the order field and link it to the namaste lesson rather than meta data. Or maybe that is what you said.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Lessons out of order’ is closed to new replies.