• Hello,

    This may be too much of a stretch and is well outside my skillset, but I am trying to see about ways to integrate elementor with Participant Database. I’ve listed three options below.

    Is it possible to create the any of the participant database custom templates:

    1. using a php widget (like this one)?
      For example, using it to determine the record_id –

    <?php?if?(?$this->participant_id?>?0?)?:??> ????????<?php?$thisRecord?=?new?PDb_Template($this);???>

    then use another instance of the php widget for something like this:

    <?php?$thisRecord->print_field('first_name');??>

    And so on displaying each field throughout the elementor template, within whatever template we design in Elementor?

    2. create custom dynamic tags for the records to use in elementor?

    3. creating a custom shortcode for each field in the database and inserting it into an elementor template.

    If any of this works, would using the elementor’s display conditions suffice, or would this custom template file still need to be stored here: /wp-content/participants-database-templates/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xnau webdesign

    (@xnau)

    For a question like this, it’s better to pull back a little and start with describing what it is you want to accomplish: what do you want to show on your site, what do you want your users to be able to do? The solution may have nothing to do with Elementor.

    Using php snippets generally won’t work because the code you’re showing there requires a specific context (for example, inside a Participants Database template) where those methods and variables are available.

    For displaying a single value out of a record, there is a special shortcode you can use for that using the “single value” template.

    I can’t be too specific, but it looks like what you want to do is easiest done with your custom code in a Participants Database custom template. If you know how to use them, you can, for example, break a form up into separate shortcodes as you ask about in your last question…it’s really a matter of using your skills with php and HTML.

    Thread Starter cyfariana

    (@cyfariana)

    Thanks for responding so quickly! I’m asking because 1) the ease of creating new & attractive templates through elementor’s interface instead of coding it manually and 2) utilizing existing global elementor widgets , and other calls to action that I want to add (& regularly update) to the single record & list template. These widgets would be intended to lead the person to other areas of the site and won’t always reference the content within Participant Database.

    Thread Starter cyfariana

    (@cyfariana)

    Oh, and in addition to my last reply I’d love to be able to make elementor widgets that query & display x number of specific records, like most recently added, most recently updated, highest rated, random, or by matching a field value.

    Plugin Author xnau webdesign

    (@xnau)

    OK, that makes sense, you want to integrate Participants Database more tightly with Elementor, I can see the advantage of that. Something like this will definitley require the skills of a WordPress developer, and a good understanding of Elementor’s API. I don’t have the knowledge to be of much helpwith that, I’m sorry.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Elementor Templates with PHP code widget?’ is closed to new replies.