How to Display Date & views?

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 8 years, 10 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #43819

    immortality
    Free User
    Post count: 25

    Hi,

    a few months subscribing geodirectory and im pretty happy.

    Just realize then it doesnt display the posted date & views in the listing?Please advice. Thank you!

    #43840

    Simone
    Expired Member
    Post count: 3515

    Hello, to add the posted date, add the following code in your functions.php file inside your child theme

    
    
    add_action('geodir_details_main_content', 'posted_gd',1);
    	function posted_gd()
    	{
    	
    the_date('Y-m-d', 'Posted: ')	;
    	}

    About the views, are you referring to the view count? This is not part of the WordPress system, it maybe is a feature from your theme

    #44410

    immortality
    Free User
    Post count: 25

    Hi Simone,

    yes, im referring to view count for each listing.

    The posted date’s code works! Thanks so much:)

    #44483

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    GeoDIrectory only shows google analytics statistic (if ernabled and setup correctly) in a sidebar widget of each listing to the site admin and the listing author.

    Neither WordPress nor GeoDirectory provide a built in statistic system to show page views to all users.

    That would require an extra plugin or customization.

    Thanks

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

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

Open Support Ticket