why does blog page ignore template [closed]

Refer to the Template Hierarchy Codex entry. The template hierarchy for the blog posts index is as follows: home.php index.php There is no case where the blog posts index will use a page template, either the default page template or a custom page template. The determination is controlled by wp-includes\template-loader.php. Refer to Line 31: elseif … Read more

Where is the general html template file?

You should paste that code in the header.php file. Just before the closing code . And that should be done. And if it is asking for pasting the code in the template then find the specific page where you want to place it. There may be different template for different page.

files disappearing from template

I figured it out. This is because a lot of your file request are getting a 4XX, 5XX response or can’t be loaded. I started looking further and realized some of your js/css is being loaded properly. However some of it is not. The files that are not being loaded have a :443 extension to … Read more

Including 2 Negative Is_Template Conditionals in header.php [closed]

(Expanding on Pieter’s comment above, and explaining the logic behind it…) if() evaluates the conditions in the parentheses, and that evaluation results in either TRUE or FALSE for the sum total (which can change, depending on how the various conditions are combined). In plain English, if( !is_singular(‘device’) || !is_front_page() ) means, “If it’s either true … Read more

Templates to use multiple time within page? [closed]

If you are trying to do this within a page or post, you could make a shortcode out of it. [movie-template title=”Gone With the Wind” date=”1939″ image=”gwtw.jpg”] [movie-template title=”Citizen Kane” date=”1941″ image=”ck.jpg”] [movie-template title=”Star Wars” date=”1977″ image=”sw.jpg”] Then you need a little code, in your template’s functions.php, or in a custom plugin: add_shortcode( ‘movie-template’, ‘my_movie_listings’ … Read more

Custom Post Type Trouble

you likely need to do a flush re-write. go to settings/permalinks in the dashboard and click save. You’ll be good to go. In the future you can add this directly to your CPT plugin. I would suggest getting a bit more creative with your naming though so you don’t have conflicts later.

Output fields manually in Woocommerce email templates

Probably the easiest way is to manually construct a new Billing address format by creating a copy of the WooCommerce email address template in /your-theme-driectory/woocommerce/emails/email-addresses.php by replacing the original echo $order->get_formatted_billing_address(); with for example: $output=”<strong>Customer Name: </strong>”.get_post_meta($order->id, ‘_billing_first_name’, true).'<br>’; $output .= ‘<strong>Customer Last Name: </strong>’.get_post_meta($order->id, ‘_billing_last_name’, true).'<br>’; $output .= ‘<strong>Company Name: </strong>’.get_post_meta($order->id, ‘_billing_company’, true).'<br>’; $output … Read more

Implement HEAD and TITLE tags with DB DATA

What data are you looking to put in the tags? I’m just trying to understand if it’s data that WordPress may already make available. This seems to be the right way to get to data in the WordPress database: https://codex.wordpress.org/Class_Reference/wpdb Once you have the data, you can use wp_head to get the values in the … Read more