Ok i am trying to connect wordpress with discord so it can automatically take posts whenever are made to discord with a plugin. I am trying to modify the plugin so to take subtitle too. its using custom placeholders so i need to find how to connect subtitle also.
The subtitle how it is:
https://imgur.com/a/uAvW6tG
from the site:
playsiders.com
And the code of the plugin that i need to put subtitle placeholder in there:
https://imgur.com/a/GS769b9
Hi,
The subtitle code for the single post template is set on this file path wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_subtitle.php
I hope this will help you!
Thank you!
How can i apply as the image above? Because i am really confused right now.
Hello!
You need to integrate your code in that file which my colleague provided you.
Or, you can use our subtitle option which is looking like this: https://www.screencast.com/t/0pTS5NBWPm7M
The element used there is called “Single Post Subtitle”.
Thank you!
i think you didn’t understand what i need to do. I already using your subtitle option. I have a plugin that sends every post is made automatically to discord server and gives the title of it. But i need the subtitle to be there instead of the title.
the plugin is this: https://el.wordpress.org/plugins/wp-discord-post-plus/
Hello!
First of all, we can not provide support for untested plugins.
And this is not an option in our theme, so you need to write some custom code there in order to achieve what you want.
If you are not able to solve this issue, then you can contact our custom work team here: https://tagdiv.com/premium-customization-services/ and they will find a way for you to write some custom code and make that to work.
Thank you for understanding!
I had a similar problem where I was submitting content via and xml feed to another site.
You are going to have to modify the plugin.
Where the plugin calls for the title you will have to do the following.
In the post loop add
$td_mod_single = new td_module_single($post);
$td_mod_single->td_post_theme_settings[‘td_subtitle’]; //this is your subtitle variable.
the post loop you mean what i am showing in thw screenshot right?
I took a quick look at the plugin your using. It is seriously out of date and I would recommend that you use something else.
I suggest creating a custom RSS feed that has the info you want in it and find a way to submit that to discord. There are plenty of examples. https://duckduckgo.com/?q=post+items+to+discord+via+rss&ia=web
Also, check out https://zapier.com/apps/discord/integrations/rss/25366/post-new-rss-items-to-discord-channels.
Depending on how busy your site it, the free version should suffice.
Back to the original question, yes you could grab the subtitle there, but there is more work to do and you would need to get additional documentation from discord.
