Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magic tag for user meta is blank (wp_usermeta not getting joined) #895

Closed
lianamir1 opened this issue Dec 19, 2012 · 13 comments
Closed

Magic tag for user meta is blank (wp_usermeta not getting joined) #895

lianamir1 opened this issue Dec 19, 2012 · 13 comments
Assignees
Milestone

Comments

@lianamir1
Copy link

I'm using the following shortcode to pull the related author info from an advanced content type "Infoboxes":

[pods name="infoboxes" slug="portrait-of-a-butterfly" template="Author Description"]

The template code looks like (removed brackets):

hr
h3{@author}/h3
p{@author.description}/p

The output looks like (removed brackets):

h4 and Liana Mir h4

No description and prepended the word 'and.' This template worked fine in the previous version of Pods, so I'm not sure if it's related to #851.

@pglewis
Copy link
Contributor

pglewis commented Dec 19, 2012

Duplicate of #854 (which should be fixed)?

@lianamir1
Copy link
Author

Looks like it may be. Do you know when this commit will probably wander into the WP repository version? Should I just wait or go to a development version on a live site?

@pglewis
Copy link
Contributor

pglewis commented Dec 20, 2012

There are couple dozen fixes in the latest over 2.1, and counting, so I highly recommend it over 2.1. You can use the normal WP update when the official 2.1.1 comes out (which will be soon) to get back on the release version with no problems.

@pglewis pglewis closed this as completed Dec 20, 2012
@ghost ghost assigned pglewis Dec 20, 2012
@lianamir1
Copy link
Author

Fixed the prepending of 'And' but clearly is not entirely a duplicate. {@author.description} still no longer works—even in the latest commit.There is blank space where a bio ought to be.

@pglewis
Copy link
Contributor

pglewis commented Dec 20, 2012

What type of pod and storage type for author? What is the field type for description?

Keep in mind my first step is usually setting up to recreate the situation, I almost have all I need.

@pglewis pglewis reopened this Dec 20, 2012
@lianamir1
Copy link
Author

The pod is an advanced content type, which has the usual automatic field, relationship to "author." I wanted to use the built-in WP users and bios and this was how sc0ttkclark told me to do it, which worked until Pods 2.1.

@sc0ttkclark
Copy link
Member

Can this be retested w/ latest commit?

@pglewis
Copy link
Contributor

pglewis commented Dec 22, 2012

I'm doing some testing on this, details coming once I've done my homework.

This issue here is specifically retrieving user meta via a relationship field, eg: {@author.description}. pods_debug_sql shows that only wp_users is being queried, no join to wp_usermeta.

@lianamir1
Copy link
Author

Just upgraded to 2.2 and still no bio showing up. Template:

{hr}
{h3} {@author.name} {/h3}
{p} {@author.description} {/p}

Nothing's showing.

@sc0ttkclark
Copy link
Member

Author is a relationship field on your Pod?

@lianamir1
Copy link
Author

Looks like it. It's the standard author field created with advanced content types and says this when I hover.

Relationship [type: pick]
› Users (Other WP Object)

@lianamir1
Copy link
Author

Any clue whether it's something I'm doing wrong or the plugin's doing wrong? 'Cause if it's me, I'll keep hammering away at it.

@sc0ttkclark sc0ttkclark reopened this Jan 8, 2013
@sc0ttkclark
Copy link
Member

The issue in this is called out in #971, not specific to users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants