Okay
  Public Ticket #2896117
Widget for single post
Closed

Comments

  • Juan started the conversation

    Hi,

    I'm new to your add-on, i bumped into it since I wanted to create a custom widget for Elementor.

    In short, I have custom posts using Pods. I want to create a widget so my content creators can pull it effortlessly into posts. So, this widget renders a link to a custom post with custom fields, similar to a book which has a ISBN, title, image, author, number of pages, summary, etc. So, in a single post or page I can refer to that book, and pull this widget to link/render that book.

    I noticed that most plugins and add-ons have widgets to LISTs or GRIDs of posts(plural), this is not it, my use case is for just to one in particular and only one (could be based on ID or slug if needed)

    Will this be possible with out-of-the-box features of your add-on?


    Thanks!

    J

  •   Max replied privately
  • Juan replied

    Hi Max, thanks for reading my post.

    Since I'm new to the add-on, I still can't get the hang of it. I tried a few things, watched a few of the tutorials on YT, and also tried to see how a few of your widgets were created.

    I just can't get to get the Pod into the scope without an iterator. The last thing I tried was to get the input of the ID, and then use it with twig to get the input and pass it to a shortcode to render Pod's data.

    I'm attaching a wireframe of kind of use case I have, and I may have constantly in the future with different types of posts. I just want that via one field I can render all the data from that particular Pod, link to it, get the gallery image, etc, anything. The image gallery might be another issue, so I'm not sure if I'll have to use PHP on this.

    So, my guess is that first I need <the usual way> to pull the Pod into the scope of the widget, then having access to that, I should be able to iterate through gallery to the generate the HTML to render that gallery component shown on the wireframe.

    If you point me to the documentation needed to do this, I can go through it for sure and attack the problem the way you suggest.

    Thanks again!

    J

  •   Max replied privately