reedenj
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Nested each in shortcodeThanks for the reply. I tried it, and it lists 15 rather random files/images, not the ones linked in
linked_carfield.sql debug
SELECT
DISTINCT
t.*
FROMwp_postsASt
WHERE ( (t.post_statusIN ( 'publish' ) ) AND (t.post_type= 'car' ) )
ORDER BYt.menu_order,t.post_title,t.post_date
LIMIT 0, 15Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Use shortcode for related stuffThanks for the reply. I am unable to get it to work. It still lists all posts, and not only the ones with the same values.
The hide works.
Content updated, frontend template does not display new content – this works fine
Form Saves, but Revision is Not Recorded – I enabled the revision option, but it didn’t fix my issue.
Revisions on Post Meta – I need to look into this more in-depth later on. Thanks for it! Sounds very useful.
I managed to find a workaround for my issue. I included post_title in my form. Submitting post_title forces the page to update.
[pods-form name="car" use_current="1" label="Submit" fields="post_title,name,photo,type"]Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Relationship field in shortcodeI managed to make it work (at least it seems so). I used .id instead .meta_value, with the necessary constant added to wp-config.
[pods name="cars" where=" brand.id = '{@ID}'" template="XX"]Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Relationship field in shortcodeAs you can see in the log, {@post_id} outputs an empty value for me, not sure why. I tried to use {@ID}, which outputs the correct post ID (not sure if that’s valid magic tag?). Anyway, my shortcode still doesn’t work, so I wonder, what is the meta_value of relationship field? Is it the page’s ID?
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Relationship field in shortcodeHere’s the output for the shortcode
SELECT DISTINCTt.* FROMwp_postsAStLEFT JOINwp_podsrelASrel_brandONrel_brand.field_id= 29331 ANDrel_brand.item_id=t.IDLEFT JOINwp_postsASbrandONbrand.ID=rel_brand.related_item_idLEFT JOINwp_postmetaASbrand_meta_valueONbrand_meta_value.meta_key= 'meta_value' ANDbrand_meta_value.post_id=brand.IDWHERE ( (brand.meta_value= '' ) AND (t.post_type= 'cars' ) AND (t.post_statusIN ( 'publish' ) ) ) ORDER BYt.menu_order,t.post_title,t.post_dateLIMIT 0, 100Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Relationship field in shortcodeThanks for the reply. Unfortunately, it doesn’t seem to work. I added the necessary constant to wp-config, and used the shortcode with {@post_id}
I tried with and without ”, but neither option works.