Blog Posts – Scroll to view more

Load all the posts and hide them exclude 10. If the user scroll to page bottom show more 10. $(‘article’).each((i, el) => { if (i > 9){ $(el).hide(); } }); $(window).scroll(() => { if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) { $(‘article:hidden’).first().show(); } });

ACF flexible content block not showing on live site (works locally)

Seems like you have a PHP error. Try adding this to the top of your php file that you are having an issue with. <?php ini_set(‘display_errors’, ‘1’); ini_set(‘display_startup_errors’, ‘1’); error_reporting(E_ALL); ?> You can also open your wp-config.php and change define(‘WP_DEBUG’, false); to define(‘WP_DEBUG’, true); Also, it looks like you site is already working.

How to show categories and date on posts

Something like this for the category term should work. That’s for the slug you probably want the name. <?php $terms = get_the_terms( $post->ID, ‘category’ ); ?> <?php foreach( $terms as $term ) echo ‘,’ . $term->slug; ?> The date is pretty simple just follow the documentation https://developer.wordpress.org/reference/functions/get_the_date/ it has lots of examples at the bottom.

Remove all external links from posts

You can do this by a SQL query, example: UPDATE wp_posts SET post_content = CONCAT( LEFT(post_content, LOCATE(‘<a’, post_content) – 1), SUBSTRING(post_content, LOCATE(‘</a>’, post_content, LOCATE(‘<a’, post_content) + 2) + 4)) WHERE post_content LIKE ‘%<a%’;

understand what code is doing when prepending /blog

add_filter( ‘register_post_type_args’, ‘wp1482371_custom_post_type_args’, 20, 2 ); When you register a post type, this filter is called, and wp1482371_custom_post_type_args is using this opportunity to modify the parameters for the post post type to change the slug add_filter(‘pre_post_link’, ‘my_change_post_link’, 10, 3); Just because your posts are now available at a new URL, doesn’t mean WordPress knows this … Read more