Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Chris Demetriad

    (@carlozdre)

    Thank you very much for your time and solution.

    Anyway, there’s loads of classes with background-color: #fff, and the one that matters, had the background-color: #fff already commented out from the first day I have installed the plugin.

    What I have done, was to remove the comments so it now looks alright with background-color: #fff;.

    So, still removed from .wp-polls-archive but on for .wp-polls, .wp-polls-form.

    Thread Starter Chris Demetriad

    (@carlozdre)

    edited*

    Thread Starter Chris Demetriad

    (@carlozdre)

    script-loader.php in wp-includes. That is the answer.

    I can’t believe no one is concerned about this as I am pretty sure loads of people would like to get rid of stuff like xmlrpc.php?rsd or l10n.js?ver=20101110.

    It was a lot easier before, just to remove what you don’t need from header and we had total control over it.

    Thread Starter Chris Demetriad

    (@carlozdre)

    script-loader.php in wp-includes. That is the answer.

    I can’t believe no one is concerned about this as I am pretty sure loads of people would like to get rid of stuff like xmlrpc.php?rsd or l10n.js?ver=20101110.

    It was a lot easier before, just to remove what you don’t need from header and we had total control over it.

    Thread Starter Chris Demetriad

    (@carlozdre)

    Thank you for your reply but I would like to have total control on whatever is loading and even if I will not delete the lines like I used to do from the header, is still a challenge to find out how they are loaded?

    Thread Starter Chris Demetriad

    (@carlozdre)

    Thanks David, I’ve tried that argument aswell, doesn’t work as it only gets the top level categories which have no subcategories at all.

    If there is a parent category without any sub-categories in it, whether empty or not, it will not display.

    Thread Starter Chris Demetriad

    (@carlozdre)

    Thank you.

    I was able to get the job done after alchymyth’s suggestion, for whoever needs a similar solution, there you go:

    <?php
    $home_page_post_id = CHANGE_THIS_TO_YOUR_ID;
    // example: $home_page_post_id = 56;
    $rand_posts = get_pages( array( 'child_of' => $home_page_post_id), 'numberposts=4&orderby=rand');
    foreach( $rand_posts as $post ) : setup_postdata($post); ?>
    <span class="getPages">
    
    <div> <a href="<?php the_permalink(); ?>">
    <?php $blogimageurl = wp_get_attachment_url(get_post_thumbnail_id());
    $imagepath = $blogimageurl;
    echo '<img src="'.get_bloginfo('template_url').'/functions/thumb.php?src='.$imagepath.'&h=134&w=212&zc=1"/>'; ?> </a> </div>
    
    <h1><?php the_title();?></h1>
    <?php echo excerpt(20); ?>
    </span>
     <?php endforeach; ?>

    The above code displays the content of the children pages on whatever page you’ll put it in, in my case maximum 4 entries, with title and some content and also the featured image on top.

    Forum: Plugins
    In reply to: funny switch in the sidebar
    Thread Starter Chris Demetriad

    (@carlozdre)

    I got it now, thank you so much.

    I was able to find another solution and I am not sure what to use now.

    ...
    switch ($_SERVER['REQUEST_URI']) {
    case "/about-us/":
    ...
Viewing 8 replies - 16 through 23 (of 23 total)