Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
acdmin
tagDiv Member

Solved temporarily customizing the file: td_set_post_settings.php so by default makes my desired choice: http://prntscr.com/ivijpm and http://prntscr.com/ivikui, that makes http://prntscr.com/ivil22

acdmin
tagDiv Member

The hack.
https://pastebin.com/tGdvs5Qi

  • This reply was modified 8 years by Bogdan B..
acdmin
tagDiv Member

Simion, thanks for your answer, the problem IS THAT THE AUTHORS HAVE NO POSTS SETTINGS access, in my capability plugin they’re ment to have http://prntscr.com/ivi98c

acdmin
tagDiv Member

Probably because of this?
http://prntscr.com/iuxbih

/includes/wp_booster/wp-admin/content-metaboxes/td_set_post_settings.php

acdmin
tagDiv Member

No such Post settings http://prntscr.com/iuwp5p

acdmin
tagDiv Member

My pleasure

acdmin
tagDiv Member

Final Correction sorry, working outside the loop:

<?php
global $post;
get_the_category( $id );
if ( is_category($id) ) {
$current_category = single_cat_title("", false);
query_posts('category_name='.$current_category.'');
if (have_posts()) : while (have_posts()) : the_post();

if( get_the_tag_list() ){
echo '<div id="tagcloud"><h3>Popular Tags for '.$current_category.'</h3>';
echo $posttags = get_the_tag_list('

  • ','
  • ','
  • ');
    echo '</div>';
    }

    endwhile; endif;

    wp_reset_query();
    }
    ?>

    • This reply was modified 8 years by acdmin.
    acdmin
    tagDiv Member

    In my case default post template (site wide) is not working.

    When an author is posting (doesn’t have the hability to choose post template type) the system doesn’t assign the value I gave. How can I work with just one default format otherwise?

    This option is just for contributors: http://prntscr.com/iss68d

    • This reply was modified 8 years by acdmin.
    acdmin
    tagDiv Member

    Correction:


    <?php

    $category = get_query_var('cat');
    $current_cat = get_category($cat);
    $custom_query = new WP_Query( 'posts_per_page=-1&category_name='.$current_cat->slug.'' );
    if ( $custom_query->have_posts() ) :
    while ( $custom_query->have_posts() ) : $custom_query->the_post();
    $posttags = get_the_tags();
    if ( $posttags ) {
    foreach( $posttags as $tag ) {
    $all_tags[] = $tag->term_id;
    }
    }
    endwhile;
    endif;

    if(is_array($all_tags)){
    $tags_arr = array_unique( $all_tags );
    $tags_str = implode( ",", $tags_arr );
    $args = array(
    'smallest' => 12,
    'largest' => 12,
    'unit' => 'px',
    'number' => 5,
    'format' => 'flat',
    'include' => $tags_str
    );
    echo '<div id="tagcloud"><h3>Popular Tags</h3>';
    wp_tag_cloud( $args );
    echo '</div>';
    }

    ?>

    acdmin
    tagDiv Member

    Solved removing the class body.td-animation-stack-type0 .post img

    • This reply was modified 8 years by acdmin.
    acdmin
    tagDiv Member

    Ok, solved altering Class td_block_big_grid_2 (const POST_LIMIT = 2;)
    http://prntscr.com/ioagx3
    So then:
    http://prntscr.com/ioahoa

    acdmin
    tagDiv Member

    Would be enough if know how to pass the value to display 1
    https://forum.tagdiv.com/api-category-top-section-style-introduction/
    and so: http://prntscr.com/io9zyb
    At this moment is getting the default 3: http://prntscr.com/ioa0ir
    Is there at td_config.php? thanks

    acdmin
    tagDiv Member

    Ok, solved putting in loop.php
    http://prntscr.com/inu4cj

    acdmin
    tagDiv Member

    Ok, solved putting in loop.php
    http://prntscr.com/inu4cj

    acdmin
    tagDiv Member

    Sorry, I’m working with the td_category_template_2.php and I want to place the ad shortcode after 6 articles but the code placed as suggested is not working. Is not something that I have to display in article display view template td_module_5.php as I want to put the Ad after 6 posts?
    Thanks

    acdmin
    tagDiv Member

    sorry, I’m working with the td_category_template_2.php and I want to place the ad shortcode after 6 articles but the code placed as they suggest is not working:

    <?php
    $postnum = 0;
    while(have_posts()) : the_post();
    if($postnum == 6) {
    echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_2"]');
    $postnum = 0;
    }
    //view another category entry
    $postnum++;
    endwhile;
    ?>

    Is not something that I have to display in article display view template td_module_5.php as I want to put the Ad after 6 posts?
    Thanks

    • This reply was modified 8 years by acdmin.
    acdmin
    tagDiv Member

    Solved, thanks

    acdmin
    tagDiv Member

    Sorry, I didn’t mention that looks like is actually taking the value #FFFFFF from the backend…
    http://prntscr.com/imy6xn

    acdmin
    tagDiv Member

    So, is there any way to place and ad in categories like this?

    http://prntscr.com/imdu3l

    Can I create a page with the header style 3 of a particular category otherwise?
    Thanks

    • This reply was modified 8 years by acdmin.
    Viewing 19 posts - 26 through 44 (of 44 total)