php - Simple way to graph Wordpress publish dates? -


this first question on stack overflow , i'm non-programmer trying pick up. (familiar html, css, starting bit of php, did tutorials on javascript , ruby on rails forgot of stuff.)

i'm doing writing project, i'm writing 1,000 blogposts of 1,000 words each, published wordpress blog, hosted on bluehost. i'm 315 posts published, means 315,000++ words , 315 publishing dates. when finish project, on 1,000,000 words , 1,000 published posts. (with 100 "summary" posts, , 100 more "common threads" or "themes" posts.)

i'm hoping use project motivation teach myself programming. example, want print graph of publish dates of blogposts, can see @ glance publishing frequency like.

for time being, i'll happy able @ graph generated other own manual labor. easier, better.

well not difficult make graph out of posts. needs bit of understanding of javascript. guess need funky looking stuff on website :). here recommendations.

https://wordpress.org/plugins/blog-stats-by-w3counter/screenshots/ can show different graphs , statistics of website. how many people viewed posts, posts doing good, keywords used website etc. haven't tried can might have timeline of posts had made.

not graph if want show posts in calendar can try https://wordpress.org/plugins/editorial-calendar/

edit: looking learning , not afraid of getting hands dirty, here have achieve this.

1) first have posts in page want show graph on. code below list title , date of publish posts.

$args = array( 'posts_per_page' => -1,'post_type' => 'post','post_status'      => 'publish' );  $myposts = get_posts( $args ); foreach ( $myposts $post ) : setup_postdata( $post ); ?>     echo 'title: '.the_title();     echo 'date: '.the_date().'<br/>'; <?php endforeach;  wp_reset_postdata();?> 

2) have learn basics of javascript. recommend subscribe teamtreehouse.com offer of best tutorials beginers. once comfortable js have start looking @ google graph's api. here jsfiddle that.

or if google chart bit you, can try wordpress plugin called "wordpress charts". once plugin installed there shortcodes available use. in case can use shortcode , replace data set post date , labels title title of posts.

[wp_charts title="post stats" type="line" align="alignright" margin="5px 20px" datasets="40,43,61,50 next 33,15,40,22" labels="one,two,three,four"] 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -