Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1267947

    Hallo zusammen

    Auf unserer neuen Webseite benutzen wir mehrere Beiträge-Slider.
    Zwei zeigen die aktuellsten Beiträge in jeweiligen Kategorien (Einsätze & Neuigkeiten), der dritte zeigt (noch) Einsatzbilder in Autorotation (≙ jeweils das Beitragsbild von Beiträgen aus bestimmter Kategorie, nur Bild, kein ‘weiterlesen’ etc.). Dieser Dritte soll jedoch nun seine Beiträge zufällig anzeigen, sodass der Besucher auch mal ältere Einsatzbilder und -berichte entdeckt.
    Ich habe bereits die Möglichkeit gefunden, generell den Beiträge-Slider zu randomisieren (https://kriesi.at/documentation/enfold/post-slider/#random-post), das betrifft dann allerdings auch die ersten zwei.
    Wie münze ich jetzt diesen Code so um, damit nur der dritte Beiträge-Slider zufällige Beitragsbilder anzeigt?
    Einige Plugins haben wir auch schon ausprobiert, allerdings sagen diese uns aus optischen und anderen Gründen nicht zu.

    Vielen Dank und MfG
    Jakob

    #1267949

    Hello everyone

    On our new homepage we use multiple Post-Sliders.
    Two display the latest posts from each category (Einsätze & Neuigkeiten), the third one shows posts’ pictures in autorotation (≙ the picture of posts from a certain category, only the picture and no ‘continue reading’ etc.). This third however should show these entries randomly so visitors can also discover older images and reports of emergency responses.
    I already found a way to generally randomise the post slider (https://kriesi.at/documentation/enfold/post-slider/#random-post) but this also affects the other two.
    How do I converrt this code so that only the third post slider randomises its posts(/images)?
    We have already tried some plug-ins, but we didn’t like them for optical and other reasons.

    Thanks in advance an kind regards
    Jakob

    #1268841

    Hi,
    Sorry for the late reply, I’m not sure about this adjustment, so I have asked for assistance, I will reply with a follow-up.

    Best regards,
    Mike

    #1268854

    on your link on top there is another interesting snippet – it will insert the oportunity to choose the orderby option on each alb.
    https://kriesi.at/documentation/enfold/post-slider/#how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element
    then take two blog posts for the newest posts of “Einsätze” and “Neuigkeiten” and for the last one only the randomized one a post slider?
    the two show as grid with one column.

    On the postslider you can choose the offset not to show duplicate post on the page.
    Randomize only that slider

    https://webers-testseite.de/jakob/

    PS : mit dem Snippet oben, könnt ihr dann natürlich auch drei post-slider nehmen.
    die zusätzlichen Optionen sind unten platziert:

    • This reply was modified 4 years, 4 months ago by Guenni007.
    #1268994

    Hallo Guenni

    Vielen Dank für Deine hilfreiche Antwort!
    Diesen Abschnitt hatte ich gar nicht beachtet, da ich ihn leider so verstanden habe, dass die Sortierfunktion im Front-End hinzugefügt wird…

    Der Code ist nun in der functions.php hinzugefügt und funktioniert wunderbar. Vielen Dank!

    #1269301

    Hi,
    Freut mich zu hören, dass Guenni helfen konnte, danke Guenni. 🙂
    Sollen wir dies dann schließen, es sei denn, wir können Ihnen in dieser Angelegenheit weiterhelfen?

    — Translated with Google —

    Glad to hear that Guenni was able to help, thank you Guenni. 🙂
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

    #1269305

    Denk noch an das Offset, damit im random slider nicht die gleichen Posts auftauchen wie bei den anderen.

    #1269323

    Hi Mike

    Yes, you can close this, the link Guenni sent was the solution.
    Though I had found it before but it sounded as it would add the sorting options in the front-end, so I didn’t even bother to try that code…

    #1269340

    Hi jakobboFWWPP,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!


    @Guenni007
    Thanks for helping out :)

    Best regards,
    Nikko

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Randomize a single Post Slider’ is closed to new replies.