Hillorie

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Latest Posts not showing the number specified #58709
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    If it helps, this is currently the code in my custom functions

    // [latestposts show=” ” cat=” “]
    function latestpostsoutput_func( $atts ){
    extract( shortcode_atts( array(
    ‘show’ => ”,
    ‘cat’ => ”,
    ), $atts ) );
    $postoutput = ”;
    wp_reset_query();
    $n = 0;
    query_posts( array( ‘posts_per_page’=>$show, ‘cat’=>$cat, ‘post__not_in’ => get_option(‘sticky_posts’) ) );
    if ( have_posts() ) :
    while ( have_posts() ) : the_post();

    $n++;
    if( $n%2==0 ) $nomgn = ‘last’; else $nomgn = ‘ ‘;
    if ( has_post_thumbnail()) {
    $LARGE_imgSrc = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘LARGE’);
    $imgUrl = $LARGE_imgSrc[0];
    }else{
    $imgUrl = get_template_directory_uri().’/images/img_404.png’;
    }
    $postoutput .= ‘<div class=”news-box ‘.$nomgn.'”>
    <div class=”news-thumb”>

    </div>
    <div class=”news”>
    <h6>’.get_the_title().'</h6>
    <div class=”date-news”>
    <span class=”byadmin-home”><i class=”fa fa-user”></i> Posted By ‘ . get_the_author() . ‘ </span>
    <span><i class=”fa fa-calendar”></i> Posted On ‘.get_the_time(‘d-M-Y’).’</span>
    </div>
    <div><p>’.wp_trim_words( get_the_content(), of_get_option(‘blogpostshortcode’), ” ).'</p></div>
    ‘.of_get_option(‘blogpostreadmore’).’
    </div>
    </div>’;
    $postoutput .= ”.(($n%2==0) ? ‘<div class=”clear”></div>’ : ”);

    endwhile;
    endif;
    wp_reset_query();
    return $postoutput;
    }
    add_shortcode( ‘latestposts’, ‘latestpostsoutput_func’ );

    in reply to: Display Posts Column #57094
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    It worked! Thanks a million 🙂

    in reply to: Display Posts Column #57090
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    I hope that wasn’t confusing to read, it makes sense in my head =P.
    To further clarify, under “latest blog posts” I have to set to show 3 which is what I want, but the width of each column should be wider. I’ve successfully changed it to show 2 posts per row but it all squished together as if there was room for a third column.

    in reply to: Display Posts Column #57089
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    Hey David,

    That is not what I meant. Your solution is if I only wanted to show 2 posts, but I don’t. I want to show many posts but in 2 columns. I fiddled around with the custom_functions php and was able to change it to display two posts per row, but as you can see at www.neverendingworldtour.com it is still spaced as if there is to be 3 columns. I just want the columns to be wider where it displays my posts under “latest blog posts”

    in reply to: SKT Girlie Pro – sidebar gone from home page #57036
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    Well now I feel like an idiot. Please disregard my comment! Figured it out with some view source and some footer action 🙂

    in reply to: SKT Girlie Pro – sidebar gone from home page #57033
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    Hey, sorry I know I’m not supposed to post on others’ support questions but I don’t think this is solved/I don’t think you have the same understanding of the issue.

    What we want is not only the sliders and 4 services boxes, but all the sections below it as well. Section 4 is most important for me, because I don’t know how to emulate that with code. So… I want everything exactly how it is showing with the slider, services, 4 sections PLUS the sidebar.

    www.neverendingworldtour.com for reference

    in reply to: Girlie Pro Font Face (Section First & Sidebar) #42669
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    Hey Shri,

    I’ve just tried this on two different computers, and on Google Chrome and IE on both. They all display the wrong font.

    But I also notice in the theme options – Basic that there isn’t even an option to change the font face for the sections I mentioned, could that be why?

    in reply to: Girlie Pro Font Face (Section First & Sidebar) #42453
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    Weird – I just went on my website on my Android phone and the font faces for both the section first & sidebar menu titles are congruent with the other fonts on the site. Still an issue on desktop, though.

    in reply to: Background Colour for Girlie PRO #42008
    HillorieHillorie
    Member
    • Topics: 5
    • Replies: 9
    • Total: 14
    Member since: July 22, 2016

    Hey Harris,

    Someone must have fixed it without notifying me. Thanks! You guys are awesome 🙂

Viewing 9 posts - 1 through 9 (of 9 total)