When we want to get some relation field we do
$pod = pods( 'pod_name', get_the_id() );
$related = $pod->field( 'relationship_field' );
and I get list of results array 1, 2 ...
but I need to get relationship_field where name="some_name". How can I…
I'm trying to create a pods relationship using the following code:
$data = array(
"pod_id" => esc_attr(strip_tags($_POST['customMetaAutorID'])),
"field_id" => 1073,
"item_id" => $post_id,
"related_item_id" =>…
I have this little wp-based script that scrapes a web page and count the occurrence of 4 keywords using preg_match_all().
This is the code for a url that I know contains the keywords:
I have 2 custom content types created by Pods CMS: fights and events. In the fights content type there is a relationship field for the event. How would I select all fights from the database by a specific event id? I tried querying the pods…
I have a query like this:
$Record = new Pod('event');
$where_clause = "DATE(enddate) >= CURDATE() AND event_type.name='Training'";
$Record->find('startdate ASC', 100, $where_clause);
It return only 1 item while I have 2 satisfy the query.
I have…
I am trying to create a loop for a group of divs that are being entered in as Pods via Wordpress admin panel.
I have the Pods setup. I could have them setup improperly, but I believe they are setup correctly. I have one Pod and the info is as…
I’m stuck! I’m a beginner at using PHP. It’s been weeks and I can’t, for the life of me, get a search form to work with my pods! I’ve been reading through the forums and codex for weeks but I’m so confused.
I have a pod named Books. This pod have…
I try to import an image to a Podscms custom content type 'blank slate' table.
I have already created it, and want to import data via a CSV file. I have already uploaded the images, so I thought I can provide only the imagelink and it would be good…
Hi I need suggestions for my research project.
I'm building a database that read RSS feeds produced by google alerts and saves the results in a database for latter categorization.
I'm using Wordpress and pods framework to handle the database and…
Hello All,
I know how to fetch record with the help of podscms,
But I would like to update the record fetched by podscms.
like
$somePod = pods('somepod')->update($my_array);
Anybody have some suggestion,
my question has to do with the pods framework plugin for wordpress sites. I am using pods version 2.2 and have been having trouble with the where parameter in the find() function.
I'd be suprised if I am the first person to encounter this problem…
Is it possible to get a pod items index in the template? For instance, if I have a pods variable that has ten entries in it, could I make a template that renders each entry with its place in the list or, even better yet, if it's first/last as…
I'm almost tearing my hair off! I believe you are supposed to be able to use PHP, javacript etc other than HTML in PODS 2.0 template right? If so why is it that I get my items to display in a pods template using magic tags but I cannot echo stuff…
How to get records selected in 'edit' mode to agree with view in pods ui? I am running pods 2.2. If I continuously select 'next record' in 'edit' mode, records appear that are not in the view. Users can therefore edit each others' records. Please…
I have a Wordpress 3.5 installation with Pods framework.
When a data entry error occurs, I call pods_error function of Pods Framework to give error message to the user.
Normally, it works properly in my localhost such as this:
But the same error…