GeoDirectory SupportOrder of listing results – GeoDirectory Support https://wpgeodirectory.com/support/topic/order-of-listing-results/feed Wed, 04 Feb 2026 16:22:19 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-42326 <![CDATA[Order of listing results]]> https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-42326 Fri, 12 Jun 2015 06:23:56 +0000 explorer Hi, currently order of listing results looks like its displaying by date of creation. Can we change this to alphabetical by default?

Thanks.

]]>
https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-42346 <![CDATA[Reply To: Order of listing results]]> https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-42346 Fri, 12 Jun 2015 12:29:46 +0000 Simone Hi, are you talking about the Popular post view widget? In that case, there is a sorting by AZ.
You can also play in the post type settings, in the Sorting option, you can add Title and made it the default sorting (asc/desc)

]]>
https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-42834 <![CDATA[Reply To: Order of listing results]]> https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-42834 Wed, 17 Jun 2015 06:47:09 +0000 explorer Hi Simone,

Im just talking about regular listings in the category listings pages. Eg. view all hotels, or all places, etc.

Your second suggestion there would work except that then it over rides the Featured listings being listed first, which is of course important.

Is there a way to do this on a global scale so it effects all CPT’s at once?

Thanks, Bodhi

]]>
https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-42846 <![CDATA[Reply To: Order of listing results]]> https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-42846 Wed, 17 Jun 2015 11:50:56 +0000 Simone Hi, so in the Listing page.. Some time ago I wrote a code to add a content section in that page so you can drag a widget, in your case a widget for the featured listings, and below you will have the other listings sorted by A-Z, will it work? Following you’ll find the code, add it in the functions.php file inside your child theme’s folder and then you will find a new widget area GD Listing Content Section


function listing_content_init() {

	register_sidebar( array(
		'name' => 'GD Listing Content Section ',
		'id' => 'listing_content',
		'before_widget' => '<div>',
		'after_widget' => '</div>',
		'before_title' => '<h2">',
		'after_title' => '</h2>',
	) );
}
add_action( 'widgets_init', 'listing_content_init' );

			 
			
			add_action( 'geodir_main_content_open', 'geodir_listings_map_before', 10 );
				function geodir_listings_map_before() { ?>
							<?php if ( is_active_sidebar( 'listing_content' ) ) : ?>
								<div>
									<?php dynamic_sidebar( 'listing_content' ); ?>
								</div>
			
]]>
https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-43111 <![CDATA[Reply To: Order of listing results]]> https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-43111 Fri, 19 Jun 2015 19:15:49 +0000 explorer Hi Simone, i think that will likely work for us but i keep getting a syntax error when i put that into the site.

I copied and pasted exactly what you have there. Its saying unepexted } or unexpected ending depending where i place your code.

Thank you, almost there.

]]>
https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-43114 <![CDATA[Reply To: Order of listing results]]> https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-43114 Fri, 19 Jun 2015 19:24:29 +0000 Simone Sorry, I copied it impartially, there you go


function listing_content_init() {

	register_sidebar( array(
		'name' => 'GD Listing Content Section ',
		'id' => 'listing_content',
		'before_widget' => '<div>',
		'after_widget' => '</div>',
		'before_title' => '<h2">',
		'after_title' => '</h2>',
	) );
}
add_action( 'widgets_init', 'listing_content_init' );

			 
			
			add_action( 'geodir_main_content_open', 'geodir_listings_map_before', 10 );
				function geodir_listings_map_before() { ?>
							<?php if ( is_active_sidebar( 'listing_content' ) ) : ?>
								<div>
									<?php dynamic_sidebar( 'listing_content' ); ?>
								</div>
								<?php endif;  	} 
]]>
https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-43123 <![CDATA[Reply To: Order of listing results]]> https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-43123 Fri, 19 Jun 2015 20:53:37 +0000 explorer Hi thanks, the updated code worked. However, i cant find a widget that allows me to show the current cpt featured posts. They all seem to make you choose a CPT. because this will be effecting multiple cpt’s it would need to be relevant to the CPT currently in view.

Is this possible?

B

]]>
https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-43125 <![CDATA[Reply To: Order of listing results]]> https://wpgeodirectory.com/support/topic/order-of-listing-results/#post-43125 Fri, 19 Jun 2015 21:55:24 +0000 Simone Hmmm….I think this is not possible

]]>