Carin Handsun
Forum Replies Created
-
AuthorPosts
-
My Add Listing Page has this:
[gd_notifications]
[gd_add_listing]This reply has been marked as private.and here is the shortcode from Auctioneer Details New Template (Place details) that does not display list of Events on the Place Details, , sorry for such a long post, I just cant seem to communicate clearly!
In Place Details i want to show the Events that a Place has listed, I added this to my Place Details template
[gd_linked_posts title=”Current Event Listings” link_type=”from” post_type=”gd_event” sort_by=”az” title_tag=”h3″ layout=”gridview_onehalf” post_limit=”6″]this is a Place that has 1 event, it does not show, it used to show
https://3dbizcenter.com/zip/places/nv/reno/default/amazing-auctions/This reply has been marked as private.This reply has been marked as private.and I just checked my Place Listings they used to show Linked Events, now they don’t
[gd_linked_posts title=”Current Event Listings” link_type=”from” post_type=”gd_event” sort_by=”az” title_tag=”h3″ layout=”gridview_onehalf” post_limit=”5″]Archive Item shows the Listings page, but I am referring to the Details page. I just added it to Archive Item Template page too, [gd_linked_posts link_type=”to” post_type=”gd_place” sort_by=”az” title_tag=”h3″ layout=”list” post_limit=”1″]
but I do not see the Place Link in either the Listing Page, nor the Details Page, i have enabled Link Post-Place in Events settings, but set it to Admim edit only because I dont want it showing on the package order forms. I have also selected that Field to show in extra output Locations-listing Page.This reply has been marked as private.Hi Guust, Ending Soon is an import option for most peoples events, and I was so glad to see that I could accomplish it on my Upcoming Events page by choosing ascending in Events default Sort tab for Event Date. In the shortcode it is not clear if Latest is latest post or latest event date, as both these options are available in the Sorting tab if they are enabled.
When you say non GD pages are you referring to the Template pages we choose in CPT settings or to the Template Page settings in each Page? I always like more flexibility so if shortcodes can work in any page its better for us.
HArd to say if there should be more until we work more with our sites customizations, but Ending Soon (sort by Event Date, ascending, is an important one.
Thanks for your ongoing and just frankly unsurpassed support!
Thank you, I discovered that sorting by ascending in CPT let me make an Upcoming Events page where the Events ending Soon are shown at the top-its just what we need!! Now I am trying to recreate that in a shortcode to add a few Events that are Ending Soon to the Home Page.
For my shortcode gd_listings, I have Events: Upcoming, sort by Latest (it is forcing me to choose a Sort by, and I want it sorted by Date ascending, as I have selected in Sorting in CPT Settings), but it is not creating the ascending order that my Upcoming Events Page has. Is there another way to add gd_listings to a Page besides the shortcodes?
Can you tell me how Coming Events decides to sort, in my list it is not chronological, we are going to be creating an Expiring Soon page, any hints on parameters we can use? We built this query ?geodir_search=1&stype=gd_event&etype=upcoming and Events are not auto sorted in any chronological order, https://www.screencast.com/t/RQHVrh2al
Actually I got it, I added post meta address to my Archive Detail template, I was trying to create a standalone page with shortcode which is not how the GDirectory works! (slowly getting educated)
So to add Number of Events by Author (Place) to the List I tried using the gd_linked_posts but do not know how to make it display in a number of rather than a layout of actual posts, am I on the right track by trying something like this: (I just want to check with you before I take it to my developer, to make sure I am not overcomplicating it.
<?php function count_user_posts_by_type( $userid, $post_type = 'post' ) { global $wpdb; $where = get_posts_by_author_sql( $post_type, true, $userid ); $count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" ); return apply_filters( 'get_usernumposts', $count, $userid ); } ?>
I am able to get the [gd_listings], pulling names of Places, but what is not working is post meta to pull in address, I guess that only works on the Template pages, that was my original question, how else could I have an alphabetical list of Places with addresses?
I made a custom page for Event Details, made sure it is set a GD page, when I add my text widget to GD sidebar it shows on all my GD pages, but if I try to restrict the Text Widget to Event Details page with widget logic then I get nothing. I reviewed the few examples on the page you sent me and tried:
geodir_is_page ( ‘event-details’ ), I also tried is_page ( ‘event-details’ ) , geodir_is_page ( 8538 ) is_page ( 8538 ) and page ids with quotes too just in case, It would seem that this would trigger the widget to show on posts coming from the Event Details page (my custom page for Event Details) but it does not.
I guess what I need to know from you is do I have to add more queries like the categories to force the widget to display. I wanted to start with the basics then work my way into deeper pages, but I cant even get it to display on the basic Details page.
(from codes)
is_page()
When any Page is being displayed.
is_page( 42 )
When Page 42 (ID) is being displayed.
is_page( ‘About Me And Joe’ )
When the Page with a post_title of “About Me And Joe” is being displayed.
is_page( ‘about-me’ )
When the Page with a post_name (slug) of “about-me” is being displayed.Thanks!
-
AuthorPosts