Windows scaling issues for high-DPI devices: Adobe Photoshop & Illustrator
If you have recently bought a 4k monitor, you may have noticed...
15.Apr.2015 | Code Snippets, Wordpress
Handy bit of code you can use in your custom templates that grabs the all the page or post data by ID:
<?php
$post = get_post(/* your ID here */);
setup_postdata($post);
?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php rewind_posts(); ?>
Useful Links:
https://codex.wordpress.org/Function_Reference/setup_postdata
Coding Tips, Wordpress Function, WordPress Tips
Share
If you have recently bought a 4k monitor, you may have noticed...
A quick snipped of code that can be used attach a function...
In the early days (2003), WordPress was essentially a blogging tool and...
A nice solution for a custom WordPress Ajax login form without using a plugin. Place this anywhere you would like...
A quick way to remove empty p tags from custom shortcodes in Wordpress. <?php add_filter("the_content", "the_content_filter"); function the_content_filter($content) { $block...
In the early days (2003), WordPress was essentially a blogging tool and quite limited in how you could build with...