• Resolved rodonmanes

    (@rodonmanes)


    Hi Erin,

    This is probably a stupid question (better to be dumb ones, rather than your whole life :-p), How can i make a shortcode where the beer list by their page ID, is it orderby ID=”page IDs (seperated by comma)” or? I′ve made allot of variations from this and i can′t get them to line up as i want to.

    https://www.ads-software.com/plugins/em-beer-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Erin Morelli

    (@erinmorelli)

    [beer-list orderby="ID" order="desc"]

    The “orderby” attribute that was recently added uses all of these sort options.

    Thread Starter rodonmanes

    (@rodonmanes)

    Thank you, but how do you add the IDs for the pages in this shorcode?

    Plugin Author Erin Morelli

    (@erinmorelli)

    You mean to only specify certain beers? You’re only able to exclude beers by ID using the “exclude” option like this:

    [beer-list exclude="1,3,6,7"]

    If you wanted to list a specific set of beers, I’d recommend using the “groups” feature – you can set more than one group per beer and then just show that group and sort it by ID:

    [beer-list group="New Group" orderby="ID"]

    Otherwise, if it’s only a few beers, you can use the single beer shortcode like this:

    [beer id="1"] [beer id="2"] [beer id="3"]

    Thread Starter rodonmanes

    (@rodonmanes)

    errm… i might be misunderstanding, but what i′m trying to accomplish is, to arrange the beers in a specific order, like;
    Steeji lager
    Steeji D?kkur
    Steeji Kóróna
    Steeji Reyktur
    Steeji Jareaberjabjór
    Jóla Steeji
    Steeji páska bjór

    not like it is now https://bjorspjall.is/island/stedji/, how would i rearrange the beers in that order?

    Plugin Author Erin Morelli

    (@erinmorelli)

    In that case, since it’s so specific, you’d need to list them out individually, like this:

    [beer id="1"]
    [beer id="3"]
    [beer id="5"]

    etc. I’m looking into adding in an page order setting for groups eventually. But this is the current solution.

    Thread Starter rodonmanes

    (@rodonmanes)

    Thanks, this is kind of allot of work to do, inserting one ID at a time, but it′ll do the work ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Oredby ID’ is closed to new replies.