I found few solutions, but obviously none of them were working, so had to find it out by myself. So where to start – lets suppose we have […]
PHP / Wordpress
Posted on:
Quick tip – how to get specific posts/page by their ID?
At first look it was simple, just: $args = array(“post__in” => array(1,2,3)); $posts = new WP_Query(); $posts -> query($args); while ($posts -> have_posts()){ $posts -> the_post(); echo the_title().'<br/>’; […]
Wordpress
Posted on:
How to hide menu in own WordPress plugin?
Sometime you want to restrict parts of your plugin using additional permissions management, since this is quite easy, hiding menu items can be a bit tricky – you […]