Skip to content

Instantly share code, notes, and snippets.

<?php get_header(); ?>
<div id="primary" class="content-area col-8">
<main id="main" class="site-main" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h2 class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php get_header(); ?>
<div id="primary" class="content-area col-8">
<main id="main" class="site-main" role="main">
<?php if (have_posts()) : ?>
<h1 class="archive-title"><?php
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'theme' ), '<span>' . get_the_date() . '</span>' );
<?php get_header(); ?>
<div id="primary" class="content-area col-8">
<main id="main" class="site-main" role="main">
<?php if (have_posts()) : ?>
<h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'theme' ), '&nbsp;<a href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a>' ); ?></h1>
<?php while (have_posts()) : the_post(); ?>
<?php get_header(); ?>
<div id="primary" class="content-area col-8">
<main id="main" class="site-main" role="main">
<?php if (have_posts()) : ?>
<h1 class="archive-title"><?php printf( __( 'Search Results for: "%s"', 'theme' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
<?php while (have_posts()) : the_post(); ?>
<form method="get" id="searchform" action="<?php echo home_url(); ?>/">
<fieldset>
<input type="text" name="s" id="s" placeholder="<?php _e('Search...', 'theme') ?>" />
<input type="submit" name="submit" value="Search" id="s-submit">
</fieldset>
</form>
<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>
<?php echo get_permalink( wc_get_page_id( 'myaccount' ) ); ?>
<?php
add_filter( 'ulozenka_dobirka_label', 'ulozenka_10001_custom_label' );
function ulozenka_10001_custom_label( $label ){
return 'Dobírka';
}
<?php
add_filter( 'ulozenka_order_number', 'ulozenka_10002_order_number', 10, 2 );
function ulozenka_10002_order_number( $order_number, $order ){
return $order->get_id();
}