Question
How can I check if post with name for example Weather exists? If not I want to create it. function such_post_exists($title) { global $wpdb; $p_title = wp_unslash( sanitize_post_field( 'post_title', $title, 0, 'db' ) ); if ( !empty ( $title ) ) { ...
0
, 4 months 0 Answers 46 views

Question
I want to create custom links like mydomain.com/custom_page/cat=ABC&tag=XYZ So that when a user clicks on the link s/he can see all posts in the category 'ABC' having tag 'XYZ' For this I've created a custom template with the following code <?php /* Template Name: MyCustomTemplate */ ?> <?php get_header(); ...
0
, , 4 months 0 Answers 49 views