Exemplo n.º 1
0
/**
 * Template Name: Form Page
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */
get_header();
?>





<div class="l-content-bg" style="background: url('<?php 
WEPN_Helper::background_image(get_field('page_background', get_the_ID()));
?>
') no-repeat">

	<div class="container">

		<div class="row">

			<div class="col-md-9">

				<div class="l-content-container">

					<div class="page-header">

						<div class="row">
Exemplo n.º 2
0
    the_post();
    $user_id = get_post_meta(get_the_ID(), 'vendor', true);
    $user_info = get_userdata($user_id);
    $cat_name = get_the_title();
    $main_cat = get_post_meta(get_the_ID(), 'category', true);
    $taxonomy = get_user_meta($user_id, 'city', true);
    $cat = get_term_by('slug', $main_cat, $taxonomy);
    if (!empty($cat) && !is_wp_error($cat)) {
        $cat_name = $cat->name;
    }
    ?>



<div class="l-content-bg" style="background: url('<?php 
    WEPN_Helper::background_image($user_info->background_image);
    ?>
') no-repeat">

    <div class="container">

        <div class="row">

            <div class="col-md-9">

                <div class="l-content-container">

                    <div class="page-header">

                        <?php 
    do_action('wepn_vendor_search_form');