link to page_for_posts

I wouldn’t classify this as a WordPress issue persay. The problem is that any get_*() functions return values. This means that get_permalink() returns the permalink to be assigned ot a variable which you’re not doing or intend to do in this case. So we have the value sitting in memory all we need to do … Read more

How could I add load more posts to my theme? [closed]

You can add a load more button using a variety of WordPress plugins, just pick one and follow the instructions. I like this one: https://wordpress.org/plugins/ajax-load-more-anything/ Yes, it is possible to add it without using the REST API but the REST API is a great use for this type of activity. To provide a concrete example … Read more

Custom jQuery plugin not working

First, your link 403’s for me. I assume you’re using the code I found here: https://github.com/trentrichardson/jQuery-Timepicker-Addon/blob/master/dist/jquery-ui-timepicker-addon.js Now, the $ thing is not a problem, that JS code library uses a proper $ wrapper, so it will work fine without modification. The actual problem is a simple misspelling. Look at this line of code: wp_enqueue_script(‘timepicker’, get_stylesheet_directory_uri() … Read more