Sort order: Random Posts: Offset n+1: Causes in duplicates

Posted in: Newspaper
Post count: 9

Hello,
if we set an offset (n+1 for each element) for the elements of a custom post type in random sort order it causes in duplicates (limit post number: 1).

Lets explain it in detail:
We set filter to show only a custom posttype named as “werbepartner1”.
Additionally we set a filter for a sort order : “Random Posts”.
Additionally we set a limit post number to “1” (only one element should be shown)
Additionally we set an offset for each element: n+1 (first element is offset 0, second element offset 1 e.g.)

We have to split this custom type elements. If we show the whole block without offset and limit post number it will work without duplicates, but this is not a solution. We need to devide each element of the custom type with an offset to set data between of this elements.

You can see it on the development site: http://dev.bwa-sport.de/
Offset Problem
Offset 0 duplicate
Offset 1 duplicate

Thank you for your help in advance.

Kind regards,
Christian

Post count: 27744

Hello,

A solution could be to use the unique article option, follow this guide: https://forum.tagdiv.com/unique-articles/
This option automatically removes duplicate posts from the page.

Thank you!

Post count: 9

Hello,

its a dumb question, sorry for that, but i cant find the unique articles section. Where i can find it? If i edit the page “home” i cant find the page template settings.

Missing Unique Articles

Post count: 27744

Hello,

The option is at the bottom of the page -> https://i.imgur.com/pU9xWKa.png

Thank you!

Post count: 9

Hello,

i cant see this section at the bottom of the page (see attached image).

Thank you for your help.

page bottom

Post count: 21065

Hello Christian!

You should have the page template settings panel: https://prnt.sc/Q_vl_HV9bAfL

Thank you!

Post count: 9

Hello,

this option is already activated as you can see in the screenshot

already activated.

Thank you.

Post count: 27744

Hi,

I would like to take a look, can you please contact us via email at contact@tagdiv.com and provide the wp-admin access?

Thank you!

Post count: 26

i have the same problem.
the panel is not displayed but is activated.

  • This reply was modified 3 years by Henrieta.
Post count: 27744

Hi,

Please check if you don’t have a plugin conflict that hides this section.

Thank you!

Post count: 26

hi chris1899, was your problem solved?

Post count: 9

Hello,

no, same problem after disabling all plugins.

I will contact you via email and provide you the wp-admin access.

Thank you

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.