I am trying to:
Display info retrieved from custom search in "small format" >> user clicks a link on the "small format" and the full post should be displayed.
Link to a page where the issue can be seen:
hidden link
I expected to see:
All grey cards (the "small format") behaving the same way, ie displaying the same content.
Instead, I got:
All posts created as of today are behaving strangely
1) not displaying the profile photograph correctly
2) not displaying the user first name correctly
3) not displaying the calculated age
4) when clicking into the "big format", ie the full post, the calculated age is not displaying correctly, despite using a copy/paste of the short codes (ie the section containing Photo, User First Name, Age)
Hello,
Please try these:
1) Edit the post type "Native Nanny Ads":
hidden link
in section "Sections to display when editing", enable option "Author"
2) Go to "Native Nanny Ads" post list:
hidden link
You should be able to see in column "Author", those two posts are empty, it conducts the problem you mentioned above, I suggest you edit those two posts, setup the post author, and test again.
Hi Luo
OK, that has helped somewhat to understand parts 1) and 2) and 3) of the problem.
What about 4)? We are using the same shortcode to display the age in the "big format" (full post), but for some reason it seems to lose context and displays the PHP code (compare the 2 screenshots)
Thanks and regards
Simon
Dear Simon,
I have done below modifications in your website, edit the content template:
hidden link
Edit below codes from:
{!{[time_ago birthdate='{!{types usermeta='nanny-date-of-birth' output='raw' user_current='false'}!}{!{/types}!}']}!}
To:
{!{time_ago birthdate='{!{types usermeta='nanny-date-of-birth' output='raw' user_current='false'}!}{!{/types}!}'}!}
There are extra [] characters in your previous codes, removing them can fix the problem, please test again, check if it is fixed. Thanks
My issue is resolved now. Thank you!