Thanks!
]]>please check on your side the following strange behavior.
The code should be inserted every N paragraphs, starting from S paragraph (e.g. %5@30), and each insertion should be unique (parameter =”unique”). But the code doesn’t insert anything. If you remove parameter =”unique”, everything works.
The same behavior will occur if you remove the S and/or the VIEWPORT parameter.
[ADINSERTER VIEWPORT="Desktop,Tablet"]
<div>TEST -- Desktop -- Rotation 00</div>
[ADINSERTER VIEWPORT="Phone"]
<div>TEST -- Phone -- Rotation 00</div>
[ADINSERTER ROTATE="unique"]
[ADINSERTER VIEWPORT="Desktop,Tablet"]
<div>TEST -- Desktop -- Rotation 01</div>
[ADINSERTER VIEWPORT="Phone"]
<div>TEST -- Phone -- Rotation 01</div>
[ADINSERTER ROTATE]
[ADINSERTER VIEWPORT="Desktop,Tablet"]
<div>TEST -- Desktop -- Rotation 02</div>
[ADINSERTER VIEWPORT="Phone"]
<div>TEST -- Phone -- Rotation 02</div>
[ADINSERTER ROTATE]
[ADINSERTER VIEWPORT="Desktop,Tablet"]
<div>TEST -- Desktop -- Rotation 03</div>
[ADINSERTER VIEWPORT="Phone"]
<div>TEST -- Phone -- Rotation 03</div>
[ADINSERTER ROTATE]
[ADINSERTER VIEWPORT="Desktop,Tablet"]
<div>TEST -- Desktop -- Rotation 04</div>
[ADINSERTER VIEWPORT="Phone"]
<div>TEST -- Phone -- Rotation 04</div>
[ADINSERTER ROTATE]
<div>TEST -- Universal -- Rotation 05</div>
]]>I needed to rotate two groups of ads, and separately and independently of each other. In other words, to run two randomization processes independent of each other in parallel.
Rotation Handle #1
[ADINSERTER ROTATE share="50"]
[ADINSERTER group="One"]
[ADINSERTER ROTATE]
[ADINSERTER group="Two"]
Rotation Handle #2
[ADINSERTER ROTATE share="50"]
[ADINSERTER group="First"]
[ADINSERTER ROTATE]
[ADINSERTER group="Second"]
But because of the above-mentioned impossibility, I had to get round to doing this.
[ADINSERTER ROTATE share="25"]
[ADINSERTER group="OneFirst"]
[ADINSERTER ROTATE]
[ADINSERTER group="OneSecond"]
[ADINSERTER ROTATE]
[ADINSERTER group="TwoFirst"]
[ADINSERTER ROTATE]
[ADINSERTER group="TwoSecond"]
That is, to provide correct randomization and combination of two groups.
The code, of course, has increased quite a bit.
But what to do if there are more than two groups?
And one more question.
Is it possible to specify more than one Name separated by commas in the [ADINSERTER ROTATE group=”Name”] shortcode?
Something like [ADINSERTER ROTATE group=”Name1, Name 2, Name 3″].
]]>I’m asking for your expert help in solving the following task correctly.
It is necessary to rotate head_code_1
and head_code_2
in <head> of page.
In this case, if head_code_1
is selected, it is necessary to implement the mandatory insertion of ALL other codes on the page, while if head_code_2
is selected, it is not necessary to do this.
Let the codes to be inserted into the page are as follows:
page_code_1
(after the first paragraph)page_code_2
(in the middle of the page)page_code_3
(after the content)page_code_4
(in the footer).First, in Settings I set a new hook (named Header) for the action wp_head.
Then I created next blocks:
BLOCK 1 — must be inserted before all other blocks used for group rotation
[ADINSERTER ROTATE share="50"]
[ADINSERTER group="head_code_1"]
[ADINSERTER ROTATE]
[ADINSERTER group="head_code_2"]
BLOCK 2 — code for insertion into <head> of page (Insertion: Header)
[ADINSERTER ROTATE group="head_code_1"]
head_code_1
[ADINSERTER ROTATE group="head_code_2"]
head_code_2
BLOCK 3 — code for insertion after paragraph 1 (Insertion: After paragraph 1)
[ADINSERTER ROTATE group="head_code_1"]
page_code_1
[ADINSERTER ROTATE group="head_code_2"]
nothing
BLOCK 4 — code for insertion in the middle of the page (Insertion: After paragraph 0.5)
[ADINSERTER ROTATE group="head_code_1"]
page_code_2
[ADINSERTER ROTATE group="head_code_2"]
nothing
BLOCK 5 — code for insertion after content (Insertion: After content)
[ADINSERTER ROTATE group="head_code_1"]
page_code_3
[ADINSERTER ROTATE group="head_code_2"]
nothing
BLOCK 6 — code for insertion into footer (Insertion: Footer)
[ADINSERTER ROTATE group="head_code_1"]
page_code_4
[ADINSERTER ROTATE group="head_code_2"]
nothing
Please give your answer to two questions.
1. Did I set the logic in Blocks 1-6 correctly?
2. What to do with Block 1, which is responsible for group rotation?
Because according to https://adinserter.pro/documentation/ad-rotation#groups manual in case of client-side dynamic blocks there is no possibility to specify Block 1 insertion into <head>.
But Block 1 must regulate the group rotation insertion as well as Block 2 into <head> and Blocks 3-6 into <body>.
Thank you in advance for your informative answers.
]]>I noticed when I upload images directly when creating a new gallery (as opposed to importing images from the media-library), all my images which are higher than they are wide (e.g. 2000×1000) are rotated the wrong way.
It can be fixed by selecting all those images and bulk rotating them to the right but it is still kind of annoying with lots of pictures.
The pictures are correctly oriented on my PC and also when I upload them in the media-library.
Maybe the images are rotated when the thumbnails are created?
Thanks for looking into it, it is a great plugin!
]]>I am currently using a docker setup with 7.4-fpm-alpine as my linux distribution in a docker container. I want to edit images inside of WordPress, but the warning tells me “Image rotation is not supported by your web host.”.
I have tried to add php-gd like here Gideon-php-gd, but with the supported packages for alpine in my php.dockerfile by adding the commands, but it did not change anything.
php.dockerfile:
FROM php:7.4-fpm-alpine
RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql
RUN apk update \
&& apk add \
build-base \
imagemagick \
gd \
If you need the docker-compose.yml or anything else tell me. I am quite new to Docker, so maybe there is an easy fix, but I am to blind to see.
Thanks in Advance!
]]>The same problem is occurring at wildfiretoday dot com where there should be six images rotating.
]]>I am looking for an ad management for WordPress, and I found your system.
But I need to know if you have these features:
1) Take a look here, in the sidebar: https://youtu.be/V6JtxUhgMtE
Create an add group of unlimited number of ads, and then show these ads in a block showing 2-3-4-5 ads from the ad group at the same time (etc underneat each other), rotation, without showing the same ad at the same time. So not just rotation in one position. But in multiple positions. One of your competitor that I was looking at too only offered to show a rotation ads from one ad group in one location/one block/position).
2) Your live rotations, do they work on mobile devices too? Your competitor did not do this either..
Thanks.
]]>