• Resolved homeslixe

    (@homeslixe)


    I need help linking multiple blog categories to my static homepage (not just a hypertext link to a separate page in the menu) and act as separate pages, at different parts of the homepage. After a several days of searching fruitlessly I am at my wits end.

    Please understand I am new to WordPress.

    I’ve seen some PHP solutions for this posted from several years ago, however I am very new here, and have limited coding experience. If you suggest a PHP method, please be very specific as to where I should inject the code in the theme files.

    Thank you!

    • This topic was modified 6 years, 8 months ago by homeslixe.
    • This topic was modified 6 years, 8 months ago by homeslixe.
    • This topic was modified 6 years, 8 months ago by homeslixe.
    • This topic was modified 6 years, 8 months ago by homeslixe.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter homeslixe

    (@homeslixe)

    after several days of reading I have found a solution for anyone looking to achieve multiple blog entries from different categories posted in different areas of your static home page (I’m using twenty seventeen).

    Solution:

    -access via FTP your page’s host and navigate to /wp-content/themes/(your theme)
    -copy any php file and rename it loop.php
    -paste in the following code after first clearing anything that was in the file:

    <?php
    /**
     * Just displays a post loop. Intended to be included in child themes using get_template_part('loop'). Also works with SiteOrigin page builder loop widget.
     *
     * Loop Name: Blog Loop
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    ?>
    <?php if ( have_posts() ) : ?>
    
    	<?php /* Start the Loop */ ?>
    	<?php while ( have_posts() ) : the_post(); ?>
    
    		<?php the_content(); ?>
    
    	<?php endwhile; ?>
    
    	<?php //vantage_content_nav( 'nav-below' ); ?>
    
    <?php endif ; ?>

    -using the plugin ‘page builder’ from site-origin drop the widget called ‘post loop’ into any page on your static home page and configure it as needed (it’s pretty self explanatory).

    Hope this helps!

    • This reply was modified 6 years, 8 months ago by homeslixe.
    • This reply was modified 6 years, 8 months ago by homeslixe.
    • This reply was modified 6 years, 8 months ago by homeslixe.
    • This reply was modified 6 years, 8 months ago by homeslixe.
    • This reply was modified 6 years, 8 months ago by homeslixe.
    • This reply was modified 6 years, 8 months ago by homeslixe.

    No offenses dude but we are not a free code service; when asking a question try to at least shows us your code to see how much effort you have put into it and then all the others developers will be able to tell you where’s the syntax error or even better, we can give you your block of code completely fixed…. I highly recommend you to watch some YouTube tutorials first.

    I know you already solved your problem by yourself but still “do your homework before coming to class”… look for Traversy Media on Youtube I believe he has a WordPress tutorials playlist.

    Thread Starter homeslixe

    (@homeslixe)

    I was not asking for “free code”, I was asking for a solution to a problem I know I am not alone in sharing that has not been adequately or concisely answered from the perspective of someone who is learning and new to wordpress. I only posted here after spending 2 days researching first. Had I known the support forums were only meant for seasoned experts such as yourself, I would have sought assistance elsewhere. The only silver lining here is at least others who may be new to wordpress and mistakenly seek help in these forums may find this information useful.

    • This reply was modified 6 years, 8 months ago by homeslixe.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Blog Categories’ is closed to new replies.