Hi guys,
I need to know which might be the best way to add a shortcode/Raw Html/php function to Posts LOOP inside blocks added via tagDiv
It’s for the implementation of DW Reactions Pro – WordPress Plugin
It’s documentations says:
MANUALLY INSERT INTO YOUR THEME.
1. Open wp-content/themes/<Your theme folder>/.
2. You may place it in archive.php, single.php, post.php or page.php also.
3. Find <?php while (have_posts()) : the_post(); ?>.
4. Add anywhere below it (The place you want Reactions to show): <?php if (function_exists(‘dw_reactions’)) { dw_reactions(); } ?>.
INSERT USING SHORTCODE
If you DO NOT want the reactions to appear in every post/page, DO NOT use the code above. Just type in [reactions] into the selected post/page and it will embed reactions into that post/page only.
If you to use reactions button for specific post/page you can use this short code [reactions id=”1″], where 1 is the ID of the post/page.
If you want to show reactions button you can use [reactions count=false button=true].
If you want to show reactions count you can use [reactions count=true button=false].
If you to use reactions button for specific style you can use this short code [reactions style=1], where 1 is the ID of the style.
Hi,
Shortcodes can be displayed in pages/cloud templates if needed, enter them in a column text element while editing the page with the tagDiv composer.
The theme loop file would be here – http://prntscr.com/nspcda if that is what you are looking for.
Where exactly would you like the plugin content to appear? Maybe the code has to be entered in a different place.
Thanks
Hi Simon.
I’m pretty sure it does.
I accomplished my goal by temporarily hard coding the td-composer module file.
This is what I want for my homepage: https://prnt.sc/nu0fle
I order to achieve that goal, I generated a page using the Default Template
and I used the Flex Block 1
I want the posts to have the category filter, using Ajax to filter posts.
Here you see where I inserted the div wrapper with the function from the external plugin that renders the “post reactions” where users can interact (as you’ll see on the previous screenshot): https://prnt.sc/nu0iey
I would like to ask for this favor.
I’m sure is not pretty much to ask:
Can you please generate for me a td-api-plugin.zip where I can customize the td_module_flex_1??
As a module, and also as a block…
I know it’s not within your scope of support to do my job (as a developer)…
BUT
since I would like to work with THAT specific block
I’m almost certain that you’ll find pretty accessible and at your disposal
compiling a plugin for me
with just this module & block…
for me to customize… 🙂
Thanks in advanced!
Hi,
That should work if you edit the module files in the composer plugin files. The api plugin was discontinued unfortunately. It was replaced with the creative plugin
– https://forum.tagdiv.com/developer-info/
The guide contains just a simple example at the moment, but not one for an actual block.
Due to the files being moved in the composer after the 9.7 update, currently there would no way of modifying the modules, either than directly. Through the plugin it would be possible to add a new block based on flex block 1 for example, it may take some work to do it however. If I could provide an exact guide as to what needs to be done, I would happily. Maybe we will update the documentation with more examples when time permits.
For the time being you could make your modifications to the module, and back up the file. Then replace the new file after a theme update with the backup. Sorry for the inconvenience.
Thanks