Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Demetreas

    (@demetreas)

    I can’t find a way to fix it and the plugin developer doesn’t seem to be addressing the issue.

    I have found a simple version which doesn’t have this problem if you want to try it out

    https://www.ads-software.com/extend/plugins/facebook-comments-wordpress-plugin/

    Thread Starter Demetreas

    (@demetreas)

    This issue has been resolved with the latest wordpress updates.

    I’ve tried this method and it doesn’t seem to be working for me it keeps outputting the same class on all the div’s

    the only thing I can think for it doing this is becuase I am already using the counter to display different styles for the first post, then for the next 7 and then for all the rest. but for the 7 (after the first post) I want to display alternative classes so they align perfectly on the screen.

    this is what I use now

    <?php  $c =0;
     if (have_posts()) : while (have_posts()) : the_post();
    $c++;?>
    
    <?php if( ($c == 1) && !is_paged(page) ) :?>
    
    //FEATURED POST MARKUP
    
    <?php elseif (($c = 7) && !is_paged(page))  :?>
    
    //HOME PAGE POST DISPLAY MARK UP, UP TO 7 POSTS ($c = 7) IS WHERE I PUT THE AMOUNT OF POSTS I WANTED TO DISPLAY ON THE HOME PAGE.
    
    /// BUT I want the 7 that display here to have alternative classes?
    
    <?php else :?>
    // MARK UP FOR ALL OTHER PAGES
    
    <?php endif;?>
    <?php endwhile; ?>

    any help would be much appreciated thanks in advanced

    Forum: Fixing WordPress
    In reply to: Custom First Post
    Thread Starter Demetreas

    (@demetreas)

    no it doesn’t seem to affect anything its still showing home page post style on the second page.

    EDIT:

    I’ve done it…. although its not perfect it does work, so if anyone else had any ideas to do it better without the n00b php here is what I’ve done.

    <?php  $c =0;
     if (have_posts()) : while (have_posts()) : the_post();
    $c++;?>
    
    <?php if( ($c == 1) && !is_paged(page) ) :?>
    
    //FEATURED POST MARKUP
    
    <?php elseif (($c = 7) && !is_paged(page))  :?>
    
    //HOME PAGE POST DISPLAY MARK UP, UP TO 7 POSTS ($c = 7) IS WHERE I PUT THE AMOUNT OF POSTS I WANTED TO DISPLAY ON THE HOME PAGE.
    
    <?php else :?>
    // MARK UP FOR ALL OTHER PAGES
    
    <?php endif;?>
    <?php endwhile; ?>

    wordpress has a build in rss feed

    https://tobecomerich.com/feed/

    I’m not sure why it isn’t showing on your site it might be something to do with the way the designer has set it up you may want to see if the place you got the template from has any help files or read me files in the zip as to why its not showing up but I have posted the link to your rss above.

    Forum: Fixing WordPress
    In reply to: Custom First Post
    Thread Starter Demetreas

    (@demetreas)

    thank you, using the !is_page() tag I’ve managed to get ride of the featured post on the pages after the home page, still having a slight problem getting the second style to change.

    <?php  $c =0;
     if (have_posts()) : while (have_posts()) : the_post();
    $c++;?>
    
    <?php if( ($c == 1) && !is_paged(page) ) :?>
    //FEATURE POST MARKUP
    
    <?php elseif (!is_page(page))  :?>
    //HOME PAGE POST MARK UP
    
    <?php else :?>
    //ALL OTHER PAGES STYLES
    
    <?php endif;?>
    <?php endwhile; ?>

    this ignores the last else and just replicates the //home page post mark up on the second page.

    Forum: Fixing WordPress
    In reply to: Custom First Post
    Thread Starter Demetreas

    (@demetreas)

    that worked perfectly, but now I am trying to just have that on the home page I’ve tried the “php if (is_home)” but I think I’m doing it wrong because I keep getting an error.

    I kind of want it to work like this
    Home Page: https://www.elucidation-art.com/webdev/blog.php
    page two: https://www.elucidation-art.com/webdev/archive.php

    and when you get go to page two off the home page to look like the above (except without the “Archive Title Or Category Title” and paragraph at the top of the page.

    Forum: Fixing WordPress
    In reply to: Custom First Post
    Thread Starter Demetreas

    (@demetreas)

    Thank you that worked PERFECTLY!!!

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