Displaying External Data – Not Posts

You can hook the content of any post and request data you want through WordPress HTTP API. Like this: add_filter(‘the_content’, ‘my_content_178750’, 1, 99); function my_content_178750($content) { return wp_remote_retrieve_body(wp_remote_get(‘http://example.com’)); } Also there is possibility to check path you’re on and decide what you want to get depending on that.

child index.php does not overwrite parent index.php in twenty fourteen theme

The way you enqueueing your stylesheets are wrong. Someone very ignorant keeps changing my edit in the codex. The way you are doing this loads your child stylesheet twice. I have already done a post on this that you should check out here The correct way is add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ ); function theme_enqueue_styles() { wp_enqueue_style( … Read more

Display ‘modified date’ in WordPress Twenty Fourteen

Look for the code that displays the post date. It should look something like the following: Posted on: <?php the_time(‘l, F jS, Y’) ?> Now replace it with the following code (slightly modified from Ardamis’ post): Posted on <?php the_time(‘F jS, Y’) ?> <?php $u_time = get_the_time(‘U’); $u_modified_time = get_the_modified_time(‘U’); if ($u_modified_time != $u_time) { … Read more

top primary menu drop down categories not showing

This isn’t necessarily an answer, but you have a Javascript error. // listen for postMessage events from the notifications iframe $( window ).on( ‘message’, function( e ) { var event = ! e.data && e.originalEvent.data ? e.originalEvent : event; if ( event.origin !== ‘https://widgets.wp.com’ ) { return; } var data = ( ‘string’ === typeof … Read more