Duplicate category content

This topic contains 7 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #447816

    coreyhammond
    Full Member
    Post count: 58

    https://wpgeo.restorationlocal.com/places/water-damage-1/

    https://wpgeo.restorationlocal.com/places/united-states/ohio/berea-oh/water-damage-1/

    In the Place Category – I have an option to NOT use that description for all the locations. However, if I leave the locations blank, it uses the default anyways.

    How can I have the description available for the 1st link, but not show for the 2nd until I write a description for the 2nd.

    #447819

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    there isn’t a setting for that, as what you describe is the expected behavior.

    I will flag this for the developers in case they know of a workaround.

    #447821

    coreyhammond
    Full Member
    Post count: 58

    Yes – I have too many locations to roll out descriptions for, so I dont want a default on across all of those pages. It seems if I toggle that on (to not have the default) then it wont show any description if one doesnt exist.

    #447822

    coreyhammond
    Full Member
    Post count: 58

    a work around would be MUCH appreciated!

    #447963

    coreyhammond
    Full Member
    Post count: 58

    any advice on the work around?

    #447975

    Kiran
    Moderator
    Post count: 7069

    Hello,

    This is how currently working. But you can use following code snippet to achieve what you requested.

    
    
    function _gd_snippet_hide_term_location_description( $description, $term_id, $location, $location_type, $post_type ) {
    	if ( $description == '' ) {
    		$description = '<!-- hide term location description -->';
    	}
    	return $description;
    }
    add_filter( 'geodir_location_category_top_description', '_gd_snippet_hide_term_location_description', 10, 5 );

    Kiran

    #447983

    coreyhammond
    Full Member
    Post count: 58

    Kiran – thanks, what file or where is this snippet?

    #448001

    Alex Rollin
    Moderator
    Post count: 27815

    That is a snippet. You can add it to your site with the code snippets plugin.

    For further customizations you can contact a GD Expert here:

    http://geodirectoryexperts.com

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket