emazero
Forum Replies Created
-
Hi Jeff
thank you very much for your replyI’m sure other admins won’t steal the passkey, so I’m asking you how does exactly it work? Once I set a passkey how do I use it?
Yes thank you, I’ve already tried the demo just to check if this feature was implemented.
Hope you’ll develop this feature (that ‘eventually’ scares me), ‘couse I (we) really need it.
I’m a premium user and I won’t esitate to renew my subscription.Anyway, will I be able to use my premium subscription withe v3 ?
Hi Tyler,
thanks for your help.I need to add an extra form (made with formidable form) at the end of the course overview page via php, so that users can ask for extra informations about the course.
Since already enrolled users must not see the form I wonder how to know via php if a user is/isn’t enrolled.
A ‘php if statement’ would make the trick but I can’t figure out how to make it.
Of course I can check if a user is logged (by native WP functions) but not if he is enrolled or not.Hope it’s more clear now
thanks
emahi,
I verified it just few minutes ago..
thanksForum: Hacks
In reply to: increase/decrease user meta fieldthanks drew
that’s a good start..
I didn’t consider update_post_meta function and it sounds good.. but update_user_meta is better, isn’t it?I run in this: https://www.ads-software.com/support/topic/update_post_meta-updates-2-posts?replies=9 and may help me much in increasing my var
I’ll try soon…
thanksForum: Hacks
In reply to: show subcategories only of a selected parent categoryit works!
thanksForum: Hacks
In reply to: show subcategories only of a selected parent categoryForum: Hacks
In reply to: show subcategories only of a selected parent categoryI found a solution here
(thanks to Andrey)but…
what if a category doesn’t have children categories?
it gives me back the error
Invalid argument supplied for foreach() in… functions.php on line…
Do I needan if statement in that code?
here is the code[Code moderated as per the Forum Rules. Please use the pastebin]
help please..
Forum: Plugins
In reply to: Posts list by custom fieldshere is my solution:
AND $wpdb->postmeta.meta_value = ‘”.stripslashes($brandvalue).”‘thanks
Forum: Plugins
In reply to: Posts list by custom fields<?php $querystr = " SELECT $wpdb->posts.* FROM $wpdb->posts, $wpdb->postmeta WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id AND $wpdb->postmeta.meta_key = 'tag' AND $wpdb->postmeta.meta_value = 'email' AND $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'post' AND $wpdb->posts.post_date < NOW() ORDER BY $wpdb->posts.post_date DESC "; $pageposts = $wpdb->get_results($querystr, OBJECT); ?>
[Please post code or markup snippets between backticks or use the code button.]
this works well.
the point is that the piece AND $wpdb->postmeta.meta_value = ’email’ declares the value in the loop.
My page is unique for different values so.. how can I make the postmeta.meta_value a variable?
Can I use the same meta_value of the page?
something like:$brandvalue = get_post_meta($posts[0]->ID, 'brand', true);
how can I combine the 2 codes?
I’m not expert in php.. sorry
thanks so muchForum: Plugins
In reply to: Posts list by custom fieldssorry but..
loop based on custom fields in the axample uses the custom field value to define a category and than shows all the posts in that category..
that’s pretty closed to my needs..
How can I use it to show posts with that custom filed, and not category?
I mean.. posts are in different categories but have the same custom field value (ex. brand = xyz)Forum: Plugins
In reply to: Posts list by custom fieldsthanks man,
unfortunatelly it doesn’t help me.1st I’m working with custom fields..
2nd I’d need some shortcode to put in my pages.. a shortcoce where I can define the custom field I need.Need somethin does this:
In XYZ page show me all posts with XYZ value custom fields
In ABC page show me all posts with ABC value custom fields
..and so onForum: Plugins
In reply to: Posts list by custom fields..of course I can’t use categories or tags.. that would be too easy!!