Hi,
i am trying to get the related items displayed on my site.
In the zpbase template there is already support for it.
If I look at the news.php the code looks like this:
If I now go to my site:
https://www.ralf-kerkhoff.de/blog/gmedia-galerie/
there is a section named 'Ähnliche News' at the bottom of the page. But there are no related items displayed.
If I look at the source code:
Ähnliche news
GMedia Anonyme IP
it looks to me, that one related article is found: gmedia-anonyme-ip
What I don't get at the moment:
Why is it not displayed in the frontend.
Ralf
Hi,
one more question:
https://www.ralf-kerkhoff.de/seiten/impressum/
at the bottom you see the label:
Ähnliche pages
I am not sure if the 'pages' label comes from the plugin or from the theme.
any ideas where i can change the label?
It's generated by this function:
https://docs.zenphoto.org/function-printRelatedItems.html
Ther first part "Ähnliche" (= Related) is hardcoded and the 2nd part depends on the $type parameter. If you want something complete different, you have to create a theme based custom function. Either by adapting this function or using https://docs.zenphoto.org/function-getRelatedItems.html as a base for a complete custom one.
PS: Nice to see you back once again ;-)