Automatically Inject Custom Elements/ Blocks

Posted in: Newspaper
Post count: 2

Hello,

I’m not a WordPress expert so I may be using the wrong terminology, so please bear with me…

We set up posting via XML-RPC and use a Newspaper theme.

Our content is fairly long and we are looking to add 2-3 blocks in the middle with something like “Read Also”
That could be a plain links, but I wonder if we can instead add some code that will be interpreted by the theme as one of your preset blocks that will generate a block of random posts with title, thumb, and excerpt

Hopefully, the question makes sense. Again, the content is created outside and posted via XML-PRC, can we pre generate blocks to be rendered by the theme.

thank you

Post count: 35449

Hi pkovalev,
Unfortunately, our theme do not have this options, sorry!
I can suggest and workaround, but I do not know if this is a good idea. What you can do is to set the shortcodes from a block that it is set as you like in inline ads (in theme panel if you use standard template -> https://i.imgur.com/kVTXMKK.png) or in single poste template -> https://i.imgur.com/fUSfPht.jpg -> https://i.imgur.com/qo31j7d.png now to get the shorticode it is indicate to make a new page where the set only that flex block (it is recommended to use a flex bloc), then copy only the schortcode of that flex element -> https://i.imgur.com/7feY393.png -> https://i.imgur.com/s6xr9K7.png -> the results will be -> https://i.imgur.com/EOgBGqs.png
I hope this will help you!

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