Hello @sietssoo
Thank you very much for reaching out to us.
Unfortunately, this option is not available at this moment. We’ll try to implement this feature in the future update of our plugin.
Best regards,
Support Team
Hi @tarekht,
I was scrolling in the ht-mega-for-elementor/includes/widgets/htmega_single_post.php
Isn’t there a function where I can at my CPT to an array?
I would say something in rule 528 needs to be added.
-
This reply was modified 4 years, 3 months ago by
sietssoo.
Hello @sietssoo
Thanks a lot for your response.
Sorry to say that, but it is not available at this moment. We’ll take this into our consideration and try our best to implement this feature in one of the future versions of our plugin.
Kindest regards,
Support Team
@tarekht isn’t that just an easy answer. I won’t call it helping. Its just an auto message that your giving right now
Hello @sietssoo
We are extremely sorry for the inconvenience you had.
Actually, we haven’t thought about adding support for CPT earlier. Thanks a lot for your valuable suggestion.
There is no function available right now where you can add your CPT to an array. That’s why it’s our earnest request to you to give us some time.
Best regards,
Support Team
@htplugins well that’s what we can call a honest reply.
Thankyou.
@sietssoo Thank you very much for your kind response 🙂
@tarekht @htplugins,
Hi guys, I already found it by myself.
Two changes had to be made.
#1 ht-mega-for-elementor/includes/helper-function.php
To make sure CPT post can be selected as an option in elementor.
Original (line 217):
function htmega_post_name ( $post_type = 'post', $limit = 'default' ){
Changed line (line 217):
function htmega_post_name ( $post_type = array('post','premium_content'), $limit = 'default' ){
#2 ht-mega-for-elementor/includes/widgets/htmega_single_post.php
To make sure widget loads the CPT.
Original (line 528):
'post_type' => 'post',
Changed line (line 528):
'post_type' => array('post','premium_content'),
After changing those two lines. CPTs can be selected in the single post widget.
Hey @sietssoo
Great to know that you have managed to find a workaround solution to this issue.
Though it is done manually, it will fulfill your needs for the time being.
Thanks for sharing it with us. We’ll try to come up with a viable solution to implement this feature.
Kindest regards,
Support Team