I need to have a ‘related posts’ element on my single template, but don’t know how to effectively execute it. These posts can be random, but if it’s possible to specify, that would be great too, as long as they’re not the post you’re on.
Say you’re on post #1, then I want post #2, #3 and #4 to be visible on the related posts element. If I’m on post #2, I need post #1, #3 and #4 to be shown.
Thanks in advance!
]]>[if my_field_name] label_name: {@my_field_name} [/if]
I am trying to use the Polylang plugin to replace label_name
with <?php pll_e('label_name'); ?>
, but it is not working. Could you advise me on how to proceed?
I’ve got an issue in a Pods Template where I’m trying to do the following:
[if allround_form][gravityform id="6" title="false"][else][/if]
This results in the shortcode being loaded as a string instead of the form loading into the page. What am I doing wrong, or could I be doing instead, to load in the form properly?
The field ‘allround_form’ is a Yes- or no checkbox which I’ve checked on one pods item to test it.
]]>I have a problem I think it’s simple to solve, but I’m trying to do this for hours!
I have two PODS (Custom Post Type): Modules and Tutorials.
In Tutorials, I have a relationed field to Modules.
Each Tutorial must have a Module.
After that, I need to LIST it separating by Modules.
Example:
Module 1
– Tutorial 1
– Tutorial 2
Module 2
– Tutorial 3
– Tutorial 4
– Tutorial 5
Exact like this.
I tried to use a PODS template, but it doesn’t work for me.
Should be something like this:
<nav>
<ul>
[each module]
<li>{@module.post_title}
<ul>
[each tutorial]
<li><a href="">{@tutorial.post_title}</a></li>
[/each]
</ul>
</li>
[/each]
</ul>
</nav>
The code above it’s an exemple. Should be simple. But I’m not knowing how to solve this with PODS + Templates.
I hope it’s clear what my problem is.
Can anyone help me?
Thanks a lot!
]]>For the moment I can only list 15 posts (there are more), with all the values of custom taxonomy, and they appear by alphabetical order.
Thank you
]]>I would like to use pods shortcodes in pods templates.
For example: I made a pod “info”. And I want to show a certain “info” in a template of teammembers. So I write in the template teammember, for example
<h1>{@post_title}</h1>
{@post_content}
[pods name=”info” id=”5″ template=”info-template”]
When in the template “info-template” there is: {@post_content}, it does not work. I got the message: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in …/private_html/wp-content/plugins/pods/components/Templates/Templates.php on line 597
When {@post_content} is not in the template “info-template” it works.
The shortcode with in the template {@post_content}, works perfect on a regular page.
Could this be a bug? And could this be fixed.
Thanks for helping out.
Stijn
]]>I have 2 pods:
– user – extending user public profile
– autor – custom post type
They have relationship bidirectional field relating to each other:
– user pod has relationship field autor
– autor pod has relationship field user
For Pods extending user public profile I am using Pods template.
I successfully display on user public profile page value of cv field from related pod autor using
{@autor.cv}
But I cannot get label of this field displayed.
None of these ideas work:
How to?
]]>I have a pod filed which is a list of files.
I’m trying to display it as a table where the first column contains the filename (only the filename, not the complete URL) ad the second column contains a button to download the file.
The {@_src.full} works perfectly to create the button with a download link.
But for the file name without its complete path, I’m having hard time finding the field attribute.
BTW, is there a complete list of field attributes somewhere ??
]]>I don’t know how to solve this bidirectional fields data in Pods template.
I publish posts in 2 categories:
I have created Pod for posts with bidirectional relationship field
Workings for
In which I choose from the Works list. This means that current Working post is related to chosen Work post.
Then I created Pods template for posts.
I added {@workings_for.post_title}
And for Working posts it displays post title of which Work post it is related to.
But I dont know how to solve 2 things:
I hope it can be done in Pods template?
]]>Thank You
]]>