Questions tagged [podscms]

Pods is a CMS framework that lets you add and display your own content types. Unlike WP custom post types, each content type gets its own table.

Links

103 questions
0
votes
2 answers

how to get relation field with condition

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…
Oleksandr IY
  • 2,783
  • 6
  • 32
  • 53
0
votes
1 answer

Creating a Pods relationship programmatically produces error in Advanced Custom Fields

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" =>…
danielrvt
  • 10,177
  • 20
  • 80
  • 121
0
votes
1 answer

Page scraping and regex give no results when they should

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:
Bakaburg
  • 3,165
  • 4
  • 32
  • 64
0
votes
2 answers

How do you query Pods CMS using relationship field?

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…
Jason Ellis
  • 526
  • 8
  • 15
0
votes
1 answer

PODS CMS incorrect query

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…
Dau Thanh Hai
  • 1,212
  • 1
  • 10
  • 17
0
votes
2 answers

Looping in Wordpress with Pods Plugin

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…
jeanhules
  • 235
  • 5
  • 16
0
votes
1 answer

Search Form for Pods Framework Tutorial

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…
Angelica Santibanez
  • 1,321
  • 1
  • 9
  • 10
0
votes
1 answer

Import images to a Pods custom content type

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…
DelphiLynx
  • 911
  • 1
  • 16
  • 41
0
votes
1 answer

Long php process hangs the serve. Bad project design?

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…
Bakaburg
  • 3,165
  • 4
  • 32
  • 64
0
votes
1 answer

How to update data with the help of PODSCMS?

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,
Farhan
  • 13
  • 5
0
votes
1 answer

How to use a relationship in the where parameter when finding records using the pods framework?

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…
Joe Bop
  • 3
  • 1
  • 2
0
votes
3 answers

Wordpress Pods: Index in Template

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…
Primus202
  • 648
  • 7
  • 24
0
votes
1 answer

The correct way to display Pods 2.0 items using PHP code in a Pods template

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…
dtechplus
  • 579
  • 1
  • 6
  • 21
0
votes
1 answer

How to get records selected in 'edit' mode to agree with view in pods ui?

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…
0
votes
1 answer

Why does Wordpress show a long list of errors although WP_Debug is set to false?

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…
Mert Nuhoglu
  • 9,695
  • 16
  • 79
  • 117