Custom Taxonomy template is not recognised

I have created a custom post type (products), and at the moment I have 2 custom taxonomies (lips and eyes).

I can get the archive to show up for ‘products’, and I can get to the URL for the archive for the categories under ‘lips’, but I cannot get the archive to show for the taxonomies.

I have been through every question I can find, and I have checked the answers against what I have done, but for the life of me I can’t figure out what is going wrong.

I have a taxonomy template, ‘taxonomy-lips.php’, but it just keeps defaulting back to my front-page.php template.

Here is my code for the post type:

function my_first_post_type() {  $  args = array(          'labels' => array(                  'name' => 'Products',         'singular_name' => 'Product',                  ),              'hierarchical' => true,     'public' => true,     'has_archive' => true,     'menu_icon' => 'dashicons-list-view',     'supports' => array('title', 'editor', 'thumbnail'),     'rewrite' => array('slug' => 'shop-products'),     'taxonomies' => array('lips', 'eyes'),          ); }     register_post_type('products', $  args);      add_action('init', 'my_first_post_type'); 

And here is the code for my taxonomy:

    function my_first_taxonomy()     {     $  args = array(          'labels' => array(                  'name' => 'Lips',         'singular_name' => 'Lips',         ),              'public' => true,      'hierarchical' => true,     'rewrite' => array('slug' => 'lips'),              );          register_taxonomy('lips', array('products'), $  args);      }     add_action('init', 'my_first_taxonomy'); 

I have reset the permalinks many times, and nothing changes.

Sorry, I know this question has been asked many times, I just can’t figure out what I have done! I’m very new to all of this, so be gentle lol, I might not understand anything too complex!

Creating post template for a Custom Post Type

I have a custom post type called ‘abstract’ which contains the following meta_input array items

 $  abstract_details = array(  'post_title' => $  result->title, meta_input' => array(                 'abstract_id' => $  result->abstract_id,                 'title' => $  result->title,                 'author' => $  result->author,                 'writeup' => $  result->writeup,                 'ref' => $  result->ref,             ),             'post_type'   => 'abstract',             'post_status' => 'publish',         ); 

I want to display the contents of these items into their respective post, using something similar to below

<li style="list-style-type: none; text-align: justify;"><?php echo nl2br(esc_html(get_post_meta(get_the_ID(), 'writeup', true))) ?></li>                     <br>                     <?php $  isAvailRef = get_post_meta(get_the_ID(), 'ref', true)?>                     <?php $  refTag = "References/Bibliography: "?>                     <li style="list-style-type: none;"><b><?php if(!empty($  isAvailRef)): echo $  refTag; endif;?></b></li>                     <li style="list-style-type: none;"><?php echo nl2br(esc_html($  isAvailRef))?></li>                     <br>                     <li style="list-style-type: none;"><b>Student: </b><?php echo esc_html(get_post_meta(get_the_ID(), 'author', true)) ?></li> 

I’m quite new to WordPress (and quite frankly coding in general) and am stuck on where to actually include the above to only be found within the contents of the post. I’ve seen some tutorials suggesting to create a content-abstract.php file and add the details in there, but doing so would also add the entire post into the excerpt area of the post.

So the question is, where do you include the HTML code to display the details of the CPT, as seen below: enter image description here

Without also having to show this content in the excerpt? (like below)

enter image description here

In case it’s of any benefit, here are the contents of the default content.php file of the theme I am using

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php engage_mag_do_microdata('article'); ?>>     <?php     global $  engage_mag_theme_options;     $  engage_mag_show_image = 1;     if(is_singular()) {         $  engage_mag_show_image = $  engage_mag_theme_options['engage-mag-single-page-featured-image'];     }     $  engage_mag_show_content = $  engage_mag_theme_options['engage-mag-content-show-from'];     $  engage_mag_thumbnail = (has_post_thumbnail() && ($  engage_mag_show_image == 1)) ? 'engage-mag-has-thumbnail' : 'engage-mag-no-thumbnail';     ?>     <div class="engage-mag-content-container <?php echo $  engage_mag_thumbnail; ?>">         <?php         if ($  engage_mag_thumbnail == 'engage-mag-has-thumbnail'):             ?>             <div class="post-thumb">                 <?php                 engage_mag_post_formats(get_the_ID());                 engage_mag_post_thumbnail();                 ?>             </div>         <?php         endif;         ?>         <div class="engage-mag-content-area">             <header class="entry-header">                  <div class="post-meta">                     <?php                     engage_mag_list_category(get_the_ID());                     ?>                 </div>                 <?php                  if (is_singular()) :                     the_title('<h1 class="entry-title" ' . engage_mag_get_microdata("heading") . '>', '</h1>');                 else :                     the_title('<h2 class="entry-title" ' . engage_mag_get_microdata("heading") . '><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');                 endif;                  if ('post' === get_post_type()) :                     ?>                     <div class="entry-meta">                         <?php                         engage_mag_posted_on();                         engage_mag_read_time_words_count(get_the_ID());                         engage_mag_posted_by();                         ?>                     </div><!-- .entry-meta -->                 <?php endif; ?>             </header><!-- .entry-header -->               <div class="entry-content">                 <?php                 if (is_singular()) :                     the_content();                 else :                     if ($  engage_mag_show_content == 'excerpt') {                         the_excerpt();                     } else {                         the_content();                     }                 endif;                  wp_link_pages(array(                     'before' => '<div class="page-links">' . esc_html__('Pages:', 'engage-mag'),                     'after' => '</div>',                 ));                 ?>                  <?php                 $  engage_mag_read_more_text = $  engage_mag_theme_options['engage-mag-read-more-text'];                 if ((!is_single()) && ($  engage_mag_show_content == 'excerpt')) {                     if (!empty($  engage_mag_read_more_text)) { ?>                         <p><a href="<?php the_permalink(); ?>" class="read-more-text">                                 <?php echo esc_html($  engage_mag_read_more_text); ?>                              </a></p>                         <?php                     }                 }                 ?>             </div>             <!-- .entry-content -->              <footer class="entry-footer">                 <?php engage_mag_entry_footer(); ?>             </footer><!-- .entry-footer -->              <?php             /**              * engage_mag_social_sharing hook              * @since 1.0.0              *              * @hooked engage_mag_constuct_social_sharing -  10              */             do_action('engage_mag_social_sharing', get_the_ID());             ?>         </div> <!-- .engage-mag-content-area -->     </div> <!-- .engage-mag-content-container --> </article><!-- #post-<?php the_ID(); ?> --> 

Thank you in advance.

Calling a plugin function in a template [closed]

I’m using the WP-property plugin with the import addon. It imports properties from a local MLS. In the property edit screen, it displays the last import time and date in the meta box. I need to display this on the font end. (The plugin docs don’t provide a way to do this).

I found the function that displays this time and date (it is edited to suit my needs for a font-end display). The class name is class_wpp_property_import

      static public function wpp_publish_box_options( $  id ) {     global $  post, $  wp_properties;      if( !$  wpp_import_schedule_id = get_post_meta( $  post->ID, 'wpp_import_schedule_id', true ) ) {       return;     }      //** Get time stamp from new format ( Version 2.6.0+ ) */     $  import_time = get_post_meta( $  post->ID, 'wpp_import_time', true );      //** Get time stamp from old meta_key ( pre-version 2.6.0 ) if new meta_key does not exist */     if( empty( $  import_time ) ) {       $  import_time = get_post_meta( $  post->ID, 'wpp_xml_import', true );     }      if( !empty( $  import_time ) ) {       $  import_time = date_i18n( __( 'M j, Y @ G:i', ud_get_wpp_importer()->domain ), strtotime( $  import_time ) );       ?>        <div class="misc-pub-section xml_import_time misc-pub-section-last">         <span class="wpp_i_time_stamp"><?php printf( __( 'Imported on: <b>%1$  s</b>', ud_get_wpp_importer()->domain ), $  import_time, $  import_url, $  import_name ); ?>           <b></b></span>       </div>     <?php     }    } 

But when I add this (as a shortcode) I get a critical error. I’m using another plugin to create the shortcode easily.

I’ve also tried just using the HTML within the divs (also via shortcode) hoping that the function is firing anyhow, but no go. I’m wondering if it only fires on the backend.

Any help on this? I’ve been at it for a while and I think my brain is fried.

I tried calling the class, still get a critical error:

    class class_wpp_property_import {   static public function wpp_publish_box_options( $  id ) {     global $  post, $  wp_properties;      if( !$  wpp_import_schedule_id = get_post_meta( $  post->ID, 'wpp_import_schedule_id', true ) ) {       return;     }      //** Get time stamp from new format ( Version 2.6.0+ ) */     $  import_time = get_post_meta( $  post->ID, 'wpp_import_time', true );      //** Get time stamp from old meta_key ( pre-version 2.6.0 ) if new meta_key does not exist */     if( empty( $  import_time ) ) {       $  import_time = get_post_meta( $  post->ID, 'wpp_xml_import', true );     }      if( !empty( $  import_time ) ) {       $  import_time = date_i18n( __( 'M j, Y @ G:i', ud_get_wpp_importer()->domain ), strtotime( $  import_time ) );       ?>        <div class="misc-pub-section xml_import_time misc-pub-section-last">         <span class="wpp_i_time_stamp"><?php printf( __( 'Imported on: <b>%1$  s</b>', ud_get_wpp_importer()->domain ), $  import_time, $  import_url, $  import_name ); ?>           <b></b></span>       </div>     <?php     }    }}  

WooCommerce – New Product Backend Template for Vendors/Employees

I will be running an online store where employees will need to add new variable products to the store regularly. The variable products would all have the exact same variations and pricing values so I am looking to make this process a little easier on my employees.

Is there any way to have a preset template with variations and prices already entered on the backend when employees go to add a new product?

Automatically export backlinks from template edit with Notepad?

Good morning,

Im building some kind of automation through python and the thing that bugs me is that i have to navigate to Edit > Options > Automatically export… and select a new location where i want to export the verified backlinks.
Is there any way to set the automated export path using Edit with Notepad and some kind of property that handles the path?

EDIT:
More data… i know that i can export the template anytime i want but i really want it to be automatically exported so i can watch a folder looking for the report of backlinks (in case i want to do another tier or whatever)

Thank you so much!

How do I hide the event description within template of The Events Calenar using Ultimate Member shortcode?

OK, so the goal is to hide the event description with Ultimate Member shortcode [um_loggedin].

I tried doing echo do_shortcode but it’s not working…

This is the code I used within wp-content/themes/hello-elementor/tribe-events/single-event.php:

<?php echo do_shortcode('[um_loggedout]'."Sorry, but only loggedin users are allowed to access the details".'[/um_loggedout]');?>

<?php echo do_shortcode('[um_loggedin]'.the_content().'[/um_loggedin]');?>