luxman
Forum Replies Created
-
AuthorPosts
-
I have
.gd-all-day { display: none !important; }
The checkbox is not checked since I don’t want users to see this option. There are no asterisk near event end date or event time. Is this an option to be set somewhere?
got it didnt know there was another table geodir_gd_event_detail
Thanks you’re right right again. I had to upload a custom php.ini which messed up sessions 🙁 issue is now fixed. Funny how the same issue was from almost a year ago 😛
This reply has been marked as private.This reply has been marked as private.Also did GD pages check = Good
April 4, 2016 at 8:09 pm in reply to: Disable Terms & Conditions field when Adding New Listing? #157565extremely easy 🙂 forgot about that when setting it up thanks!
ok great thanks
<?php global $current_user; get_currentuserinfo(); if gd_listings (post_author($current_user->ID)) == 0 { ?> <p>test</p> <?php } else { echo do_shortcode( '[gd_listings post_author="'.$current_user->ID.'"]') <?php } ?>
something like that?
The only thing that sticks is the text “No listings found which match your selection.” This is fine for when a user searches for something, but this is being displayed in the user’s profile.
Is there an if statement I can use to check if there are posts, if not then I have have different text?
never mind, got it.
appears to work:
<?php global $current_user; get_currentuserinfo(); echo do_shortcode( '[gd_listings post_author="'.$current_user->ID.'"]') ?>
<?php $author = get_queried_object(); $authorid = $author->ID; echo do_shortcode( '[gd_listings post_author="'.$authorid.'"]' ?>
is this the correct code to use?
This is being placed on a page, created by Admin.
What I need is a direct php code I guess that checks to see who is logged in and then to display their listings.
——–
The page I created is for members only, which displays their username/fields. I want to place a section under that which says “Your Listings.” But I need to have a code that does
<?php $author = get_queried_object(); $authorid = $author->ID; echo do_shortcode( '[gd_listings post_author="'.$authorid.'"] ?>
something like that
I added “[gd_listings post_author=”current”]” to the page but I see all the listings appearing.
or is this supposed to be in the php template?
I’m using GravityForms to register new “directory” users, with their own unique user role in WP. I found that the plugin Peters Login Redirect helps fix this issue 🙂
-
AuthorPosts