Forum Replies Created

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts

  • awais
    Participant

    Hi, Will you do it both task in 30$ . please inform me i am in trouble code is not in my understanding.


    awais
    Participant

    I have check that file but there is you have not get sub category

    extract(shortcode_atts(array(
    ‘title’ => ‘Latest works’,
    ‘column’ => ‘6’,
    ‘count’ => ‘8’,
    ‘filter’ => ‘no’,
    ‘load_more’ => ‘no’,
    ‘more_text’ => ‘View more works’,
    ‘categories’ => ”………………………………..this is getting just categories

    ), $atts));

    this code is also for just categories
    $cats = array();
    if( !empty($categories) ){
    $exps = explode(“,”, $categories);
    foreach($exps as $val){
    if( (int)$val>-1 ){
    $cats[]=(int)$val;
    }
    }
    }

    i know this is showing the result
    if( $filter==’yes’ ){

    $filter_html = “<div class=’container’>
    <div class=’late’>
    <h3>$title</h3>
    </div>
    <div id=’filters’>
    <button class=’button actual’ data-filter=’*’>”.__(‘All’, ‘nrgagency’).”</button>
    $filter_html
    </div></div>”;
    }

    return “<div class=’lates-work text-center’ data-column=’$column’>
    $filter_html
    <div class=’container-fluid’>
    <div class=’row’ >
    <div class=’isotope allmenu’>
    <div class=’grid’></div>
    $items
    </div>
    <div class=’folio-args’>$encoded_args</div>
    </div>
    </div>
    $load_more_link
    </div>”;

    but how can show sub categories separate

    what i have to do because i don’t know flow of your theme getting new attribute . i know the code but where to add it so it will work ?

    here is code from my skills for getting sub categories only so i will show it in dropdown
    <?php

    $category_id = get_queried_object_id();
    $args = array(
    ‘hide_empty’=>1,
    ‘depth’=>1,
    ‘hierarchical’=> 0,
    ‘show_count’=> 1,
    ‘taxonomy’=> ‘portfolio-types’,
    ‘child_of’ => $category_id
    );
    ?>

      <?php wp_dropdown_categories( $args ); ?>

    Kindly help me in this issue


    awais
    Participant

    I have also use lighbox.min.js for slide images so user can next image on popup and used data-lightbox=”gallery”

    but its not effect on portfolio popup.

    here is data-lightbox=”gallery” i added

    <div class=”plase-box background-parent” data-lightbox=”gallery”>
    <?php
    if ( has_post_thumbnail() ) {
    the_post_thumbnail( ‘full’ );
    }
    ?>
    </div>


    awais
    Participant
    WordPress › Error

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.