• Hi,

    I’m looking to turn my blog into an events guide, with the date of the event displayed and a nice navigation so that people can easily find, for instance, events on a Saturday night.

    Are there any hacks that do this?

    Many thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The Codex page, Plugins/Calendar_Event, might have something for you.

    Thread Starter primitivesandpioneers

    (@primitivesandpioneers)

    hi – i’ve tried all of the different calendar mods in there and none of them do what i want them to do.

    at the moment i’m simply adding entries to my blog in chronological order and deleting them once they have gone by, but it caused problems due to the incorrect date being shown (that being the date of the post)

    here’s what my blog looks like at the moment – click here – any ideas anyone?

    The problem lies in the fact that the events will be in the FUTURE. I’m thinking you should modify your index.php to delete the date code, so WP won’t display the post date. And use a plugin such as Structured Blogging which uses its own templates for events such as concerts (and even has a way to review them).

    You should be able to read up on that very versatile plugin here:

    https://structuredblogging.org/

    Thread Starter primitivesandpioneers

    (@primitivesandpioneers)

    thank you jonimueller, that looks like it could help me out a lot!

    primitve… did this work for you? I just gave it a spin, and the Write menu shows all the structured goodies, but none of them work – I just get a blank screen.

    I installed the events calendar and tweaked it by adding some fields. Very cool.
    Testing it at:
    HERE
    I am still in newbie territory with PHP.
    The dates are listed with mm/dd/yyyy
    I want to change this to show the full month name.
    I tried changing the m to M and noting gives.
    Any Thoughts are appreciated

    It writes to the db with this function:

    function edit_date( $date = null ) {
    	global $wp_locale;
    
    	echo "<fieldset>";
    
    	$time_adj = time() + (get_option( 'gmt_offset' ) * 3600 );
    	$jj = ($date<>null) ? mysql2date( 'd', $date ) : gmdate( 'd', $time_adj );
    	$mm = ($date<>null) ? mysql2date( 'm', $date ) : gmdate( 'm', $time_adj );
    	$aa = ($date<>null) ? mysql2date( 'Y', $date ) : gmdate( 'Y', $time_adj );
    
    	echo "<select name=\"mm\">\n";
    	for ( $i = 1; $i < 13; $i = $i +1 ) {
    		echo "\t\t\t<option value=\"$i\"";
    		if ( $i == $mm )
    			echo ' selected="selected"';
    		echo '>' . $wp_locale->get_month( $i ) . "</option>\n";
    	}

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Turning my blog into a calendar of events’ is closed to new replies.