How to change featured content to a different tag in WordPress Twenty Fourteen?

In twenty fourteen theme, we’d like to know how to change the features content tag. Currently it’s set as featured. Now, we would like to know how to code this for different page templates. We notice in page.php there is a piece of code calling the template part featured-content. <?php if ( is_front_page() && twentyfourteen_has_featured_posts() … Read more

How do I create new content pages for my Custom Post Type?

I am using Underscores starter theme and I’ve created a custom post type video. $args = array( ‘label’ => __( ‘Video’, ‘text_domain’ ), ‘description’ => __( ‘Videos’, ‘text_domain’ ), ‘labels’ => $labels, ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘custom-fields’, ), ‘taxonomies’ => array( ‘category’, ‘post_tag’ ), ‘hierarchical’ => false, ‘public’ => true, ‘show_ui’ => true, … Read more

How to create a page template that retrieves content from db?

I have to create a hundred of content pages that share the same structure. For example: [Title] – [Subtitle] [Description] [Specs] – [Spec-A] – [Spec-B] – [Spec-C] [Features] – [Image-A][Feature-A] – [Image-A][Feature-B] – [Image-A][Feature-C] I would like to store this information in some DB tables so that if I need to change the template content … Read more

wp_insert_post iframe missing

In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I use the following code $my_post = array( ‘post_title’ => $_POST[‘title’], ‘post_content’ => $_POST[‘content’], ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, ‘post_author’ … Read more

plugings request url is the old url

I have changed my WordPress site url in wp-config.php by adding this two lines: define( ‘WP_HOME’, ‘http:// $new url’ ); define( ‘WP_SITEURL’, ‘http:// $new url’ ); almost everything working fine, but I have some plugins that still trying to get data from the old url, for example: https://OLD URL/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff?5.3.0 there is another place that I … Read more