VIEW CODE IN CODEPEN: https://codepen.io/MrThiemann/pen/GRZZBEY
eine weitere Variante für einen Tooltipp: http://jsfiddle.net/cxSc9/1/ um den "hover" aus diesem Code anders platzieren zu können: https://www.w3schools.com/css/css_tooltip.asp
<?php | |
<div class="one_field"> | |
<div class="active-goods-item "> | |
<div class="tab_content active "> | |
<ul class="produ-list clearfix js-brandsItem moregoods_color "> | |
<li class="googleTempTwo subjectGoodItem"> | |
<div class="pro-content"> | |
<div class="goods-img pr"> |
<?php | |
$args = array( | |
'post_type' => '3d_drucker', | |
'posts_per_page' => '10', | |
//'orderby' => 'Platzierung', | |
'order' => 'ASC', | |
'orderby' => 'meta_value_num', | |
'meta_key' => 'platzierung', | |
'meta_value' => '10', | |
'meta_compare' => '>' |
VIEW CODE IN CODEPEN: https://codepen.io/MrThiemann/pen/GRZZBEY
eine weitere Variante für einen Tooltipp: http://jsfiddle.net/cxSc9/1/ um den "hover" aus diesem Code anders platzieren zu können: https://www.w3schools.com/css/css_tooltip.asp
<div class="druckerimage"> | |
<?php $image = get_field('image'); | |
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false, '' ); | |
if( has_post_thumbnail() ) { | |
echo '<figure class="gesamt">'; | |
the_post_thumbnail('medium'); | |
echo '<figcaption>'.the_field( 'image_description' ).'</figcaption>'; | |
echo '</figure>'; | |
} |
<?php | |
/* | |
* Step 1. Add Link (Tab) to My Account menu | |
*/ | |
add_filter ( 'woocommerce_account_menu_items', 'misha_vendor_details_link', 40 ); | |
function misha_vendor_details_link( $menu_links ){ | |
$menu_links = array_slice( $menu_links, 0, 5, true ) | |
+ array( 'vendor-settings' => 'Verkäufer Einstellungen' ) |
<?php if ( have_rows( 'printer_information' ) ) : ?> | |
<?php while ( have_rows( 'printer_information' ) ) : the_row(); ?> | |
<?php $vendor_3d_drucker_hersteller = get_sub_field( 'vendor_3d_drucker_hersteller' ); ?> | |
<?php if ( $vendor_3d_drucker_hersteller ) : ?> | |
<?php $get_terms_args = array( | |
'taxonomy' => 'hersteller', | |
'hide_empty' => 0, | |
'include' => $vendor_3d_drucker_hersteller, | |
); ?> | |
<?php $terms = get_terms( $get_terms_args ); ?> |
<?php if ( have_rows( 'printer_information' ) ) : ?> | |
<?php while ( have_rows( 'printer_information' ) ) : the_row(); ?> | |
<?php $vendor_3d_drucker_hersteller = get_sub_field( 'vendor_3d_drucker_hersteller' ); ?> | |
<?php if ( $vendor_3d_drucker_hersteller ) : ?> | |
<?php $get_terms_args = array( | |
'taxonomy' => 'hersteller', | |
'hide_empty' => 0, | |
'include' => $vendor_3d_drucker_hersteller, | |
); ?> | |
<?php $terms = get_terms( $get_terms_args ); ?> |
<?php | |
add_action( 'wcfmmp_rewrite_rules_loaded', function( $wcfm_store_url ) { | |
add_rewrite_rule( $wcfm_store_url.'/([^/]+)/printer_information?$', 'index.php?'.$wcfm_store_url.'=$matches[1]&printer_information=true', 'top' ); | |
add_rewrite_rule( $wcfm_store_url.'/([^/]+)/printer_information/page/?([0-9]{1,})/?$', 'index.php?'.$wcfm_store_url.'=$matches[1]&paged=$matches[2]&printer_information=true', 'top' ); | |
}, 50 ); | |
add_filter( 'query_vars', function( $vars ) { | |
$vars[] = 'printer_information'; | |
return $vars; | |
}, 50 ); |
<div class="druckerimage"> | |
<?php $image = get_field('image'); | |
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false, '' ); | |
if( has_post_thumbnail() ) { | |
echo '<figure class="gesamt">'; | |
the_post_thumbnail('medium'); | |
echo '<figcaption>'.the_field( 'image_description' ).'</figcaption>'; | |
echo '</figure>'; | |
} |
Entweder den Code als Snippet hinzufügen, oder auf ein Plugin ausweichen: