Add custom HTML to WP Post based on custom field using plugin - wordpress

The wordpress plugin I'm developing needs to be able to display some custom HTML in posts. I know that this is possible with shortcodes, but unfortunately I'm limited to using 'custom fields'. In order to deside which HTML should be added, the authors set a custom field (using a post-meta-box in the backend created by the plugin).
But I can't find any documention on how to achieve this. It's easy if you edit the wordpress theme, but this plugin should work across different themes.
Anyone able to guide me in the right direction? Thanks!

Related

How to access a wordpress plugin page or add posts without doing it from the Wordpress dashboard?

I am a creating a website on WordPress that uses a plunging called H5P which allows the creation of interactive content. as in the picture below. However the creation of the content is currently only possible from the dashboard.
I would like to allow my website guests to use the plugin to create content but from a separate page and without letting them access or use the WordPress dashboard. In other words, I just want to show the users the section in green in the picture.
Similarly, Is there any way to allow the guests to create posts also without going from the dashboard? such as another page that the same fields to create a post but to be visited without going through WordPress dashboard?
Thanks a lot for any help you may provide
For creating post/custom post content from the front-end, one solution is to use the fol owing popular plugin and extensions,
Contact Form 7 plugin - a popular and simple approach to form designs in WordPress.
Smart Grid-layout Design for CF7 extension plugin - this allows you to design and build multi-column and multi-row grid layout forms to make your form more compact.
To see how this plugin can help you design better forms, see this tutorial on how to design a 2-column form layout.
This plugin extension was designed to fix the flaws of the CF7 plugin as well as improve its functionality, and as a result does a great many things. Once you install the plugin it adds a a tutorial section in admin dashbaord with a list of all the online tutorials available to learn how to use it.
Post My CF7 Form extension - allows you to map a CF7 form to a post or a custom post in the back-end.
To map a form to an existing post, please follow this online tutorial.
To map a form to a custom post type, please follow this tutorial.
The plugin also allows you to map dropdown lists to taxonomies, files to post thumbnails, and many more options. To understand how to do this, see this playlist of tutorials.

Is there a way to pull custom fields created in Pods plugin into a Elementor posts widget

I'm pretty new to WordPress but have been experimenting with the Pods plugin for custom post types and fields and trying to implement them using the Elementor page builder. Creating the post type and fields is all straight forward but I'd like to be able to now implement these custom fields into my pages. Specifically, I'd like to be able to integrate them with the Posts widget in Elementor.
By using the Ele Custom Theme plugin I have been able to create a Loop template and setup the articles I'd like to loop through and this method works fine using the standard Posts widget in Elementor. However, the standard Posts widget does not have the ability to add a filter to your items. This is what I need.
There is a Ultimate Addons version of the Posts widget that incorporates this filter function but it doesn't seem to have a feature to loop through a loop template. In the standard Posts widget, you are able to select a 'Custom' skin which can then hook up with the loop template you've created. The Ultimate Add Ons version doesn't have this option.
I hope I'm explaining this correctly and that someone maybe able to offer some advice.
Is it possible to for the Ultimate Addons version of the Posts widget to pull through a custom template like the standard version does. I have added an image as a guide. The Ultimate addons version is on the left hand side.
Any advice on this would be much appreciated
you can use Livemesh Addons for Elementor,
https://wordpress.org/plugins/addons-for-elementor
with that you can create and select custom templates for post and custom post types.

How to create such buttons with Wordpress?

I'm very new to WordPress (tbh, it's my first time working with it). And I need to make a website as my school project using CMS. Creating pages with templates is alright, but I have a lot of troubles with buttons. I found this website, and I can see it using WordPress. I need such buttons as on this page https://movie-chooser.co.ua/random-movie-2/ (they appear when you hover over the image). Is this a default option for buttons in WordPress? If not, is there a plugin for this or what is the way to add them on my images?
First Install Elementor plugin https://wordpress.org/plugins/elementor/
and go to page when you add button and open page with elementor
and do drag and drop any element like button, space, text editor etc.
You have several ways to achieve that:
Overwritting Wordpress CSS
Using a plugin
Create your own shortcode
1 - Overwriting Wordpress CSS
If you manage to display all the elements using wordpress template, and your only issue is to display buttons over the images, then it should only be a matter of CSS
2 - Using a plugin
The idea here is to find a plugin that help you to create/display the informations you need (maybe you'll need to add functionnality to basic post though custom fields or using a custom post type).
Once you find the right plugin, again if the plugin dosen't directly offert some settings on the design then you'll have to overwrite the plugin's CSS rules to display the elements as you want.
3 - Create your own shortcode
If you're new to Wordpress I wouldn't recommend this method as it is kind of advanced, unless you're comfortable with PHP/HTML/CSS (optionaly JS).
This is the more flexible solution as you can basically control anything, but it will require you to understand some core concepts of Wordpress like WP Query and how custom queries works.
The idea here is to create a shortcode.
THis shortcode refere to a custom made PHP function, in which you can create a custom request to fetch the informations you need to display from Wordpress database, and display it in an HTML structure that you decide.
THen angain, you'll just have to customize it though CSS.
Note : no need to create a whole plugin if you decide to create a shortcode, you can use the template functions.php file for that.

Editable Settings in Custom WordPress Theme

I am trying to implement a simple one page -no blog- WordPress theme using a bootstrap template. I have an aside with three social links -facebook, twitter, Instagram- in the header.
I want to be able to make it so not only are these able to put truned on or off in by the user through the wp admin dashboard, but also the links to those sites able to be put in through said dashboard.
I am using udnerscores as a starter theme. How do I go about doing what I am looking to do?
This can be achieved using the Customizer API. That would be my recommendation. There is a lot of really good documentation on how to use that here. It also includes a whole bunch of sample code. Give that a look.

wordpress auto newsletter plugin

I have a Wordpress website with a custom theme which includes Galleries, Testimonies and others.
I'm looking for a plugin that would automatically send an updated email to my subscribers every time something new is added. It should be something very simple to handle. For example the plugin would use a custom template that needs to be created (using the same shortcodes and style-sheet as the website theme). Then it would detect the website sections such as Posts, Galleries, Testimonies, etc and using check-boxes I could select which one I want to include in the newsletter. It would be so convenient for me and the newsletter would be taken care of by Wordpress itself.
Does this kind of plugin exist?
Thank you in advance.

Resources