Feed blog from another blog

0

I'm starting to work with Wordpress and they asked me to do the following:

I have 4 blog-like pages:

  • News: Where you can upload text, image and document
  • Regulations: Which will have a tree of regulations and documents may be placed
  • Recommendations: Same as regulations.

What I need is:

  • The Home would be:
    • Menu bar
    • Main Slider
    • News (Where would the latest uploads to the news blog, regulations and recommendations)
    • Contact form
  • The question is: How do I fill the Home blog from the last entries to News / Regulations / Recommendations ? Can it be done?

  • Yes, it must be half obvious but I still do not understand Wordpress very well. Can I make the Home have a static part (Slider, contact form) and dynamic (latest blog entries)?
  • asked by Fer 13.10.2016 в 18:21
    source

    2 answers

    0

    the grace of Wordpress is, precisely that you should look at the codex site, specifically in the theme development section so you can clarify your doubts.

    link

    I recommend you leave with this

    greetings

        
    answered by 19.10.2016 в 03:11
    0

    Let's start with the question

  • To list the POST, you can use the following code
  • if(have_post()): // verifica si hay post/s a listar
    
    while(have_post()): //loop
    
    the_post(); // pone el indice en el siguiente post a listar
    
    ?>
    
    <article>
    
    <h1><?php echo the_title();  ?></h1>
    
    </article>
    
    <?php
    
    endwhile
    
    else:
    
    echo "No hay entradas";
    
    endif;
    
  • the easiest thing is to create a file called "front-end.php" in the theme directory. This PHP is going to load when you enter the home. For more reference, this image explains how the loading waterfall is for template files . Also like @Hugosolar said look at the DOC in link
  • answered by 21.10.2016 в 18:27