Remove P tag from the_content
Here is how to remove the p tag from automatically generating when you use the_content. In the template file you want to strip the p tag from simply add the…
Here is how to remove the p tag from automatically generating when you use the_content. In the template file you want to strip the p tag from simply add the…
The following snippet will display all the Wordpress posts in a dropdown list. <form action="<? bloginfo('url'); ?>" method="get"><select id="page_id" name="page_id"><!--?php global $post; $args = array( 'numberposts' =--> -1); $posts =…
Add the following to functions.php file //Brings back the link manager in Wordpress add_filter( 'pre_option_link_manager_enabled', '__return_true' ); To get the links to show up on your page add this to…
The following snippet will give you all children of the current page and will include the title and thumbnail.
The following code will show the featured image or thumbnail of a post or page. if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned…
This will pull in the content from a specific page. Where page_id=38 is where you define the page id. Change "38" to your desired page id.
The following snippet will output the children of a parent page. Change '000' to the page ID.