Modify this line to give alternate format date?

Instead of using $post->post_date, use get_the_time( $format, $post ). The correct PHP date format string for your question is ‘d/m/y H:i’. … Assuming you want a two digit minute (even when less that 10 minutes). Also, I may have the month and day the wrong way around for you. The format argument in get_the_time() is … Read more

Loading Posts & Category with Ajax

Sure, the get_template_part() function can be called multiple times referencing to different files, so if you have a file in the partials/-folder, all you have to do is add a second function call here. function load_cat_posts () { $cat_id = absint($_REQUEST[‘cat’]); $args = array ( ‘cat’ => $cat_id, ‘posts_per_page’ => 10, ‘order’ => ‘DESC’ ); … Read more

How to make Link to go on the first post

I’ll assume by “first” you mean “newest”, since if it’s the oldest, then all you’d need would be the url of that post. $latest = get_posts(array(‘numberposts’ => 1)); $url = get_permalink($latest[0]->ID); echo “<a href=”” . $url . “”>Go to first post</a>”; This should give you a link that always goes to whatever is the latest … Read more

the_content() Not Grabbing All Content

Try calling the_post() at the top of the file before calling functions like the_title() and the_content() If that doesn’t work, then most likely you have a function on the the_content filter that is causing this problem. Try disabling the plugins you have installed one by one to see if that fixes the problem