• Resolved DestinyMaker

    (@destinymaker)


    Please look at my “sample portfolio” (sample, cause i want to test things out first cause i am new to WordPress.

    https://dmdoomlord.byethost7.com/work/

    I have to sample post(poems) there,(yes it’s not fixed yet) and if you click the title or read more, it should redirect you to the post right? WRONG! ??
    It should really redirect you to the post itself, which is what’s happening the last time I checked it before I updated to 4.2.3. Now if you can see, it won’t show. It shows the others but not my posts..
    (if it misses something please point me to the light as I am new here.)

    Note: It is a trash site but I am working on it. :/ And it’s working the way I wanted it(when you click the title or read more, it redirects) even though I am missing things.(I know but I still don’t know those things and I am on my way to learn them.)

    What I have already did:

    -deactivate plugins
    -clear cache
    -reinstall wordpress 4.2.3
    -identifying Javascript issues
    -tried twenty fifteen theme
    -and manually upgraded

    all to no avail

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you tried changing and then saving your permalinks, and make sure your .htaccess file is correct and in the root of your website.

    Thread Starter DestinyMaker

    (@destinymaker)

    yes, i read something about having a numeral value first before /%postname%/ like /%postId%/ or year and month before postname, but still for no avail.. yes .htaccess is always on the root, and I never done / change anything from it since the post links are working until yesterday.

    I think I will try other solution and see what will happen. Thank you.

    EDIT:

    I think I forgot to say, that I also add a new test post and that is not even showing.

    Thread Starter DestinyMaker

    (@destinymaker)

    Bump for the new update.

    I tried reverting it back to Twentyfourteen theme, and it also doesn’t fix my issue, then I reverted it back to Twentyfifteen, And it’s now showing the post on their own pages. Then I changed back again to my custom theme, and it’s now not there… again.

    can someone look at the codes ?? i really can’t do so much…

    Problem: when you click the links(title or read more) of the post, you will be sent to their own respective post page, but no post is showing except twentyfifteen now. how?

    where can I find the codes for them.

    Thread Starter DestinyMaker

    (@destinymaker)

    Bump.

    <?php require('wp-blog-header.php');?>
    			<!--- Site Content <h1>Main Area</h1> -->
                           <?php if ( is_page('About') || is_page('Contact')){ ?>
                            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<?php the_content(); ?>
                            <hr /><br>
    			<?php endwhile; else: ?>
    			<?php _e('Sorry, no posts matched your criteria.'); ?><?php endif; ?>
                            <?php } ?>
                            <?php if( is_home()){ ?>
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<span class="titulo"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span><br />
    			Posted on <?php the_time('F jS, Y') ?>
    			<?php the_content('<br>Read More...'); ?>
                            <hr /><br>
    			<?php endwhile; else: ?>
    			<?php _e('Sorry, no posts matched your criteria.'); ?>
    			<?php endif; ?>
                            <?php } ?>

    This is the actual php I have on my index.php. I really do have a hard time here cause I started at a super basic files(footer.php, index.php, header.php, sidebar.php”although i hide it for the meantime”, functions.php and style.css). This index.php is working as I have stated on the comments above until 4.2.3 came into my life :))

    I also tried matching these codes with the one on 2015, 2014 and 2013’s contents.php cause they are working fine when I switch.

    So can someone point me to the right direction?

    EDIT: That’s not the WHOLE, but the actual php to get contents.

    =====================================
    =====================================

    EDIT (2):

    Before 4.2.3, that code displays all posts with excerpts on the “blog/work” page and when you click them, the full content of that certain post is viewed.

    Now, that code displays all posts with excerpts on the “blog/work” page and when you click them, it shows nothing on the “content area” where it should’ve been.

    I view the source code of that to see what codes it produce, and it’s blank on the content area. I don’t want to throw this up, I want to know what’s happening and if there are any remedy or cure ??

    Thread Starter DestinyMaker

    (@destinymaker)

    Okay, Okay.. after a long long long(not really super long, just a day) of inspecting 2015, 14 and 13 contents.php to my index.php where contents should display. I found it! ahahaha ?? thank you Alan for replying and giving me idea though it’s not the solution, you give me some of your time which is good when you need it.

    Anyways,

    <?php require('wp-blog-header.php');?>
    			<!--- Site Content <h1>Main Area</h1> -->
                           <?php if ( is_page('About') || is_page('Contact')){ ?>
                            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<?php the_content(); ?>
                            <hr /><br>
    			<?php endwhile; else: ?>
    			<?php _e('Sorry, no posts matched your criteria.'); ?><?php endif; ?>
                            <?php } ?>
    
                            <?php if( is_home()){ ?>
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<span class="titulo"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span><br />
    			Posted on <?php the_time('F jS, Y') ?>
    			<?php the_content('<br>Read More...'); ?>
                            <hr /><br>
    			<?php endwhile; else: ?>
    			<?php _e('Sorry, no posts matched your criteria.'); ?>
    			<?php endif; ?>
                            <?php } ?>

    ^ this is the code I used before 4.2.3 and now I added another code for the “content” post itself.

    <?php if( is_single()){ ?>
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<span class="titulo"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span><br />
    			Posted on <?php the_time('F jS, Y') ?>
    			<?php the_content(); ?>
                            <hr /><br>
    			<?php endwhile; else: ?>
    			<?php _e('Sorry, no posts matched your criteria.'); ?>
    			<?php endif; ?>
                            <?php } ?>

    and it works! I’m so happy, and I know there are much more routine that can make it shrink, cause other lines of it are just repeating.. but for now, I’ll just celebrate ??

    Just posting this if “ever” someone like me who uses only index.php comes here.

    [SOLVED]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Posts doesn't shows up’ is closed to new replies.