
-
AuthorPosts
-
December 16, 2020 at 9:25 pm #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
JakobDecember 16, 2020 at 9:37 pm #1267949Hello 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
JakobDecember 20, 2020 at 8:26 pm #1268841Hi,
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,
MikeDecember 20, 2020 at 9:04 pm #1268854on 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 sliderhttps://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.
December 21, 2020 at 12:21 pm #1268994Hallo 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!
December 22, 2020 at 12:43 pm #1269301Hi,
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,
MikeDecember 22, 2020 at 1:12 pm #1269305Denk noch an das Offset, damit im random slider nicht die gleichen Posts auftauchen wie bei den anderen.
December 22, 2020 at 2:29 pm #1269323Hi 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…December 22, 2020 at 3:27 pm #1269340Hi jakobboFWWPP,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!
@Guenni007 Thanks for helping out :)Best regards,
Nikko -
This reply was modified 4 years, 4 months ago by
-
AuthorPosts
- The topic ‘Randomize a single Post Slider’ is closed to new replies.