Forum Replies Created

Viewing 15 replies - 61 through 75 (of 82 total)
  • Matias Mann

    (@developress)

    Hola! Deberías consultar con el autor del tema Zerif Lite en el support del tema.

    Probá también desactivar todos los plugins para comprobar que ninguno esté interfiriendo.

    Matias Mann

    (@developress)

    Great @alvion . I would advice to use a plugin such as Yoast, it is lightweight and proven.
    If the issue is solved please set it as closed. Thanks!

    Matias Mann

    (@developress)

    ¡Que bueno! Dale, dejá el código así queda por si otra persona lo necesita y marcá por favor el ticket como resuelto.

    Suerte con el proyecto. Muchas Gracias!

    Matias Mann

    (@developress)

    Hola! No se si pudiste resolverlo pero te recomiendo que integres algún framework para crear los metaboxes / custom fields. Por ejemplo Metabox.io: https://metabox.io/online-generator/

    Matias Mann

    (@developress)

    Fijate que tenés errores en el HTML. Hay varios div sin ID, varios </p> sin cerrar.

    El error principal es que el <div id=”nav-subproductos”> se encuentra dentro del <div id=”nav-destacados”>
    Ponelos en la misma jerarquia y te va a funcionar.

    Te paso una screenshot: https://snipboard.io/FJ2Zmv.jpg

    Y el código de como deberia quedar con comentarios.

    <div id="nav-tabContent" class="tab-content">
        <div class="tab-pane fade show active" id="nav-destacados" role="tabpanel" aria-labelledby="nav-destacados-tab">
            <!-- Fijate este tab-pane que aparece sin id, debe ser algo en el foreach-->
            <div class="tab-pane" id="">
                <div class="row">
                    <div class="col-xl-4 col-lg-6 mb-3">
                        <div class="row">
                            <div class="col-xl-4 col-lg-6 width-img-producto col-12 custom-center-image-xs">
                                <img class="img-fluid size-img-producto"
                                    src="https://www.molinozuniga.cl/beta/wp-content/themes/molino/img/saco.jpg">
                            </div>
                            <div class="col-xl-8 with-descripcion-producto custom-xs-text-center">
                                <h4>Prodcuto Destacado y Subproducto</h4>
                                <p>Producimos un solo tipo de harina blanca, la cual no contiene blanqueadores ni
                                    preservantes. El pan hecho con esta harina se caracteriza por quedar crujiente y
                                    sabroso. Sacos 1, 5 y 25 kilos o si se prefiere a granel, si se trae la bolsa o envase.
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-4 col-lg-6 mb-3">
                        <div class="row">
                            <div class="col-xl-4 col-lg-6 width-img-producto col-12 custom-center-image-xs">
                                <img class="img-fluid size-img-producto"
                                    src="https://www.molinozuniga.cl/beta/wp-content/themes/molino/img/saco.jpg">
                            </div>
                            <div class="col-xl-8 with-descripcion-producto custom-xs-text-center">
                                <h4>Producto solo destacado</h4>
                                <p>fgdfgdfg</p>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Fijate este tab-pane que aparece sin id, debe ser algo en el foreach-->
                <div class="tab-pane" id=""></div>
            </div>
        </div>
        <!-- Fijate aca que quede en la misma jararquia que el id="nav-destacados" -->
        <div class="tab-pane fade " id="nav-subproductos" role="tabpanel" aria-labelledby="nav-subproductos-tab">
    Matias Mann

    (@developress)

    Puede andar, probá primero hardcodeando los ID´s de los tabs a ver si funciona. Para ayudarte más tendría que ver el código en tu sitio.

    Matias Mann

    (@developress)

    There are many options:
    1) Set the ul list toto display inline-block with a CSS class or inline style.
    2) Create a column layout in Gutenberg and put the image in a 1/3 column and the text in a 2/3 column.
    3) Set the image/figure alignment to the right, center or wide

    Matias Mann

    (@developress)

    Fijate varias cosas:
    1) Usar las funciones de terms y taxonomies, no de categories.
    2) Resetear la query
    3) Donde poner el código (si usas el template de taxonomy, si usas del de archive, etc
    4) Tu taxonomy es “productos_tipos” y tu custom post type es “productos”. Lo recomendable para los slugs es usar los terminos en singular: producto_tipo y producto.

    Acá te paso una de Bootstrap 3 y en formato de tabla pero se puede adaptar al formato que necesites.
    La primera tab muestra todos los productos, después loopea cada termino y muestra los post asociados.

      <?php $productos_tipos = get_terms('tipos'); // buscar todos los tipos de productos que tengan terminos ?>
    
      <!-- Nav tabs -->
      <ul class="nav nav-tabs nav-justified">
        <li class="active">
          <a data-toggle="tab" href="#all">Todos</a>
        </li>
        <?php foreach($productos_tipos as $producto_tipo) { ?>
          <li>
            <a href="#<?php echo $producto_tipo->slug ?>" data-toggle="tab"><?php echo $producto_tipo->name ?></a>
          </li>
        <? } ?>
      </ul>
    
      <!-- Tabs -->
      <div class="tab-content">
    
        <div class="tab-pane active" id="all">
          <?php 	
          $args = array(
            'post_type' => 'producto',
            'posts_per_page' -1,
            'orderby' => 'title',
            'order' => 'ASC'
          );
          $todos_los_productos = new WP_Query( $args );		
          ?>
    
          <?php if ( $todos_los_productos->have_posts() ) : // Chequear que haya productos para mostrar ?>
          <div class="table-responsive">
            <table class="table">
              <?php while ( $all_films->have_posts() ) : $all_films->the_post(); ?>	
              <tr>
                <td><img class="img-fluid size-img-producto" src="<?php echo bloginfo("template_url")/img/saco.jpg ?></td>
                <td><h3><?php the_title() ?></h3></td>
                <td><p><?php the_content() ?></p></td>
              </tr>
              <?php endwhile; ?>
              <?php wp_reset_query() // Resetear la query porque sino queda enganchanda en la main?>
            </table>
          </div>
          <?php endif; ?>
    
        </div><!-- todos los productos tab pane -->
    
        <?php foreach($productos_tipos as $producto_tipo) { ?>
    
          <div class="tab-pane" id="<?php echo $producto_tipo->slug ?>">
            <?php 	
            $args = array(
              'post_type' => 'productos',
              'posts_per_page' -1,
              'orderby' => 'title',
              'order' => 'ASC',
              'tax_query' => array(
                array(
                  'taxonomy' => 'productos_tipos',
                  'field' => 'slug',
                  'terms' => $producto_tipo->slug
                )
              )
            );
            $productos = new WP_Query( $args );		
            ?>
    
            <?php if ( $productos->have_posts() ) : // Chequear que haya productos para mostrar?>
            <table class="table">
              <?php while ( $productos->have_posts() ) : $productos->the_post(); ?>	
              <tr>
    <td><img class="img-fluid size-img-producto" src="<?php echo bloginfo("template_url")/img/saco.jpg ?></td>
                <td><?php the_post_thumbnail() ?></td>
                <td><h3><?php the_title() ?></h3></td>
                <td>
                  <p><?php the_content() ?></p>
                </td>
              </tr>
              <?php endwhile; ?>
              <?php wp_reset_query() // Resetear la query porque sino queda enganchanda en la main ?>
            </table>
            <?php endif; ?>
    
          </div>
        <? }  ?>
    
      </div><!-- tab-content -->
    Forum: Fixing WordPress
    In reply to: Ghost Menu Page
    Matias Mann

    (@developress)

    Do you have other menus created?

    Can you post a print of your menu screen?
    It is probably related:
    1) With your theme
    2) With a caché plugin

    Matias Mann

    (@developress)

    1) Go to phpmyadmin
    2) Go to users table
    3) Change the passoword of the user to: 21232f297a57a5a743894a0e4a801fc3 (its the hash for ‘admin’
    4) Save

    Login to wordpress with the username/email and password = admin

    You can create and hash md5 passwords here: https://www.md5hashgenerator.com/

    Forum: Fixing WordPress
    In reply to: Menu placeholders
    Matias Mann

    (@developress)

    For the main placeholder item you can create a Custom Link Menu item and in the url put a #.

    See screenshot: https://snipboard.io/kwjRph.jpg

    Matias Mann

    (@developress)

    – resetting existing users passwords in the users table via PHPMyadmin

    Did you hashed the password when you resetted the user password? Wordpres saves the password hashed.

    Forum: Fixing WordPress
    In reply to: Ghost Menu Page
    Matias Mann

    (@developress)

    I´ve seen the site.

    To delete the item:
    1) Go to Appearance > Menus
    2) Select the item you want to delete and click con the arrow
    3) Click on delete
    4) Save the menu

    https://snipboard.io/p3cNr7.jpg

    Forum: Fixing WordPress
    In reply to: Ghost Menu Page
    Matias Mann

    (@developress)

    Did you delete the page in the wordpress menu? Appearance > Menu

    Matias Mann

    (@developress)

    Hola!

    En principio, estás usando get_categories para traer una custom taxonomy. La función es otra: https://developer.wordpress.org/reference/functions/get_taxonomies/

    Si estás en en el template de la taxonomy, no hace falta que hagas el filtro, solamente hacer un retrieve de los nombres de cada taxonomy.
    Tu template de taxonomy podria ser: taxonomy-productos_tipos.php

    ¿Que necesitás hacer puntualmente?

Viewing 15 replies - 61 through 75 (of 82 total)