Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • jjvasquez

    (@jjvasquez)

    Hello zia, your css are in separed files , it load in diferent times, try to combine in one file, you can use W3 Total Cache plugin to do this automatically

    jjvasquez

    (@jjvasquez)

    Hello, 9xero,here a simple example

    <?php
    $args = array(
    	'post_type' => 'post'
    );
    $the_query = new WP_Query($args); 
    ?>
    
    <?php if ( $the_query->have_posts() ) : ?>
    
         <div class="site-section__content">
    	<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
             <a>">
               <div class="card-content is-flex">
                <div class="card-icon">
                                <i class="icon-bookmark"></i>                
                </div>
                <p class="card-title">
                     <?php echo $the_query->post->post_title; ?>
                </p>
                <p class="font-number ">
                        <?php echo get_the_date(); ?>
                </p>
    
                    
               </div>
            </a>
    	<?php endwhile; ?>
    
    </div>
    	<?php wp_reset_postdata(); ?>
    
    <?php else : ?>
    	<p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
    <?php endif; ?>
    
    ------------------------------------------------------------------------------
    Style Here
    
    <style>
    
    .site-section__content {
        height: 100%;
        padding: .5rem 1rem 3rem;
        position: relative;
        background-color: #fbf8ef;
    
    }
    .card {
        display: block;
        background-color: #fff;
        -webkit-box-shadow: 0 1px 0 0 rgba(0,0,0,.2);
        box-shadow: 0 1px 0 0 rgba(0,0,0,.2);
        color: #303030;
        max-width: 100%;
        position: relative;
        }
    
    .is-flex {
        display: -webkit-box!important;
        display: -ms-flexbox!important;
        display: flex!important;
    }
    
    .card.post-card .card-content {
        padding: .75rem .5rem;
    }
    .card .card-content .card-title {
        color: #303030;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        text-decoration: none;
        text-decoration: none;
    }
    .card:hover.hovered_color {
        background-color: #4a7c12;
        color: #fff;
        -webkit-transition: background-color .1s linear;
        transition: background-color .1s linear;
    }
    
    .card:hover.hovered_color .card-title {
        color: #fff!important;
    }
    </style>
    jjvasquez

    (@jjvasquez)

    Hello Riley try this, for output content, in shortcode function

    function my_shortcode() {
    	ob_start();
    	?> <HTML> <here> ... <?php
    	return ob_get_clean();
    }

    and separe this

    wp_enqueue_script( 'mod_frameresizer', plugins_url( 'Resources/iframeresizer.min.js' , __FILE__), $in_footer = true ); //Calls the resize code
        wp_enqueue_script( 'mod_frameresizer1', plugins_url( 'Resources/MODSkinService.js' , __FILE__), $in_footer = true ); //Calls the mod skin code
        wp_enqueue_script( 'mod_frameresizer2', plugins_url( 'Resources/ifrzsk.js' , __FILE__), $in_footer = true ); //Runs the resize and skin code ?>
    Forum: Fixing WordPress
    In reply to: Cant change theme

    Maybe you have a error from code, first enable debug mode and change WP_DEBUG to true value, in wp-config.php from root wordpress directory and send me the message when you try to change de theme

    example define( ‘WP_DEBUG’, true );

    try this

    wp_set_object_terms(‘None’, ‘0-200’, ‘pricerange’ );
    wp_set_object_terms(‘None’, ‘200-400’, ‘pricerange’ );

    Regards

    Forum: Hacks
    In reply to: Tag displays all posts

    or for me that is work <?php
    <?php
    global $wp_query;
    global $paged;

    query_posts(
    array_merge(array(
    ‘posts_per_page’=>6,
    ‘paged’=>$paged
    ), $wp_query->query)

    );

    ?>

    Forum: Hacks
    In reply to: Tag displays all posts

    try only change post_per_page in Admin Dashboard > Options > Reading.

    try, if you know the category id

    $cats = get_categories(‘include=4′,’hide_empty=1’);
    echo “<h1> count is “.$cats[0]->count.”</h1>”;

Viewing 8 replies - 1 through 8 (of 8 total)