spypots
Forum Replies Created
-
OK, Completely another solution.
Instead of trying to feed the Loop Grid item with specific posts, or use the template in a “custom-made loop grid”, I decided to “diet” the main loop grid.
So, I used a simple loop grid to source it with all the “artists” and created a query that filters out the artists whose “participated_events” match the current event.
The query (in theme function / functions.php):<code data-l-s=”57872″>add_action( ‘elementor/query/filter_artists_by_event’, function( $query )
<code data-l-s=”57872″>{
$current_event_id = get_the_ID();
$query->set( ‘meta_query’, array(array(‘key’ => ‘participated_events’,’value’ => $current_event_id,’compare’ => ‘LIKE’)));
});
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Is there any Demo?Thank you very much,
I have watched all the OSTraining and I am in marathon with every other source available.
The problem with most of them is that they cover the basics of a site setup, or more coding challedges.
The purpose of no-code site is somewhere between. How to buld with a pairing block builder a site and use as less code as possible.
Don’t get me wrong, I have find ideas for answers in the videos, but I am not a php guy. Mostly I get ideas of better discribing my problems to Copilot and figure solutions from there.
But it is another thing to have a working demo code and twink things, mess things up and check/ alter codes and back, and another thing to copy a small part from a video and try to figure out how to apply it in own situation, let alone altering it.
Most of my problems have to do with Templates and relationship/ bi-directional field’s handling. Mostly to take info from fields of the corresponding bi-directional post, in many-to-many relationships.
eg. I have a field related to a custom taxonomy with multiple selections. How do I create custom formated buttons with each taxonomy separately and get the link out from a taxonomy’s field?Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Is there any Demo?I already have the Pods installed and I know that I need them.
Also, I know this “demo”, but this is an online try-out editor, not an actual site demo.
My purpose is to see and copy methods and codes that proven work.
See some Pods and their relationships, as well as the code in templates, querys etc.qontinuing the above, right now, the
[pods field=”featured_artists.artist_bio”]
displays the texts as they are, conected by an “and” inline.
I would rather have to format myself this connection, replacing the “and” with new line.Half answering to myself and expanding the question.
FFwd:
“m_Event” has a bi-directional field called “fetured_artists” connected to
“m_Artist” ‘s bi-directional field called “participated_Events”.
I just simply added a “shortcode” widget in my template with the code:[pods field="featured_artists.artist_bio"]
and shaped t with css in Advanced option.
Now, the question is this:
I want the “featured_artists” bi-directional field to be a “Multiple Select” so as to add more artists to my events.
Is it possible and what is the shortcode to display one-by-one all featured artists’ bios?Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Pods Shortcodes Widget is missing.Hi there,
I use Elementor Pro as Editor.
In all video tutorials, the “Pods Shortcode” is there, regardless if it shows the Elemntor text editor in site builder, or the classic WordPress page/ template “classic” editor.
And YES,
Pods Admin > Settings > Dynamic Features :: Set to “Enable Dynamic Features including Pods Shortcodes, Blocks, and Widgets”.
Access Rights at Pods Admin > Settings > Review Access Rights :: All set to “Enabled”.