Set a checkmark in a category based on a URL-parameter

I figured it out myself, but by using several different small things. I’m sorry to ‘steal the credit’, – but I can’t remember all the sources used: This is the JavaScript: jQuery(document).ready(function() { function GetURLParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split(‘&’); for (var i = 0; i < sURLVariables.length; i++) { var … Read more

Get all attachment by post excluding featured and content inside

I have solved. The solution is related with the function get_post_meta(); As WordPress as made by the abstraction of differnet kind of posts with the same structure we can define different post types. Here we can find more information about the function: https://developer.wordpress.org/reference/functions/get_post_meta/ And as you can read, you can find 3 vars $post_id, $key … Read more