• Resolved sietssoo

    (@sietssoo)


    Hi all,

    Currently the Single Post widget only supports the regular ‘Post’ but I also want to choose at op my custum posts from my CPT. How can I do this?

    I’m able to add css, codesnippets and change php.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Tarek Aziz

    (@tarekht)

    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

    Thread Starter sietssoo

    (@sietssoo)

    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 2 years, 10 months ago by sietssoo.
    Plugin Contributor Tarek Aziz

    (@tarekht)

    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

    Thread Starter sietssoo

    (@sietssoo)

    @tarekht isn’t that just an easy answer. I won’t call it helping. Its just an auto message that your giving right now

    Plugin Contributor HT Plugins

    (@htplugins)

    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

    Thread Starter sietssoo

    (@sietssoo)

    @htplugins well that’s what we can call a honest reply.
    Thankyou.

    Plugin Contributor HT Plugins

    (@htplugins)

    @sietssoo Thank you very much for your kind response ??

    Thread Starter sietssoo

    (@sietssoo)

    @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.

    Plugin Contributor Tarek Aziz

    (@tarekht)

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘CPT in Single Post’ is closed to new replies.