Leveraging AI to Supercharge Your WordPress Business Website
In today’s competitive digital landscape, every business website needs an edge to...
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
In today’s competitive digital landscape, every business website needs an edge to...
WordPress has come a long way since its humble beginnings in 2003....
In the ever-evolving landscape of website development, staying ahead of the curve...
Commonly asked eCommerce questions: A nice little bit of information about #PCIDSS for @WooCommerce - http://goo.gl/BSK6Ba Lee Harris - Twitter...
To stop any page from being deleted by any user role, including admins, add the following code to your functions.php...
To exclude draft posts from appearing in the ACF Relationship field, add this code to your functions.php file. All you...