Custom link for wp_insert_post

You can use post_name parameter. $my_post = array( ‘post_title’ => wp_strip_all_tags( $_POST[‘post_title’] ), ‘post_content’ => $_POST[‘post_content’], ‘post_status’ => ‘publish’, ‘post_author’ => 1, ‘post_category’ => array( 8,39 ), ‘post_name’ => ‘your-url’ ); wp_insert_post( $my_post );

Set Title from Custom Template

Use global variables to pass values from the template to the header. // in the template file global $my_page_title; $my_page_title=”field value”; global $my_meta_description; $my_meta_description = ‘field value’; get_header(); // in the header file global $my_page_title; global $my_meta_description; echo $my_page_title; echo $my_meta_description;

How do I change .css versioning?

In using the wp_enqueue_style you can set a version number similar to how you set the script. Codex Example: wp_enqueue_style( string $handle, string $src = false, array $deps = array(), string|bool|null $ver = false, string $media=”all” ) Your Code Say you want to update the ‘conferences’ CSS from above. wp_enqueue_style( ‘conferences’, get_template_directory_uri() . ‘/css/cars.css’, array(), … Read more

How do i remove animated icon [closed]

Probably your theme might have an option for making the icons hidden. In case it hasn’t a specific option for that, you could achieve what you want with CSS in order to control your website’s styles. Most modern themes have a custom css option under their settings so you can set place your custom css … Read more