How to assign post to page ? if page is -> full content mode

How to assign post “test” to page " lessons" if we chose category lessons… and i want that all posts goes into only that section lessons page…

and need that other posts don’t show up in that section. So how to make for each page diferent posts, and only in home page all posts show up below gallery.

Thank you this is incredible job what are you done! respect!
And should i learn to code more ? :smiley:

Cheers!

If you have posts linked to only one category they will show up on homepage with all posts and inside that category page. For instance you can setup it like this:

Cat1
	Post1
	Post2
	Post3
Cat2 
	Post4
	Post5
Cat3
	Post6
	Post7

While homepage will look like

	Post1
	Post2
	Post3
	...

Once you select multiple categories for one Post, it will show up on all of those categories and home page. If you select only one category for each post, then your posts will only be displayed on that category page and home page.

Let me know if this helps, or we are speaking about entirely different things here?

It is always good idea to learn something new :slight_smile:

Thx for answer, but the problem is : I create page (blog full content mode) -> then i make post -> with category for that page ->the i click on that page i see that all posts goes in there but not only that i assign for that page.

So how to make that they don’t go all in same page ?

Problem is this : all posts goes into that page . I select category “lessons” and page name in navigation is lessons. But i see it’s show up my newest post witch is in diferent category.So why they are go also together ?

my settings are : page ( full content mode) -> post (category “lessons”).

Thx

Ok, now I see.

Once you create page called “lesson” and chose “Blog Page Medium” template you basically create a blog where all posts are displayed.

Category pages by default will show only image+excerpt. If you want to show full content for category pages you will have to edit content-extensions.php file.

You can also get this done via Child Theme to make it update safe.

For simples version just replace <?php the_excerpt(); ?> with <?php the_content(); ?> on line 133 of the content-extensions.php file.

To make changes update-safe you will have to create Child Theme and add this you functions.php file of your Child Theme.

if ( ! function_exists( 'travelify_theloop_for_archive' ) ) :
/**
 * Fuction to show the archive loop content.
 */
function travelify_theloop_for_archive() {
	global $post;

	if( have_posts() ) {
		while( have_posts() ) {
			the_post();

			do_action( 'travelify_before_post' );
?>
	<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<article>

			<?php do_action( 'travelify_before_post_header' ); ?>

  			<?php do_action( 'travelify_after_post_header' ); ?>

  			<?php do_action( 'travelify_before_post_content' ); ?>

			<?php
			if( has_post_thumbnail() ) {
				$image = '';        			
	     		$title_attribute = apply_filters( 'the_title', get_the_title( $post->ID ) );
	     		$image .= '<figure class="post-featured-image">';
	  			$image .= '<a href="' . get_permalink() . '" title="'.the_title( '', '', false ).'">';
	  			$image .= get_the_post_thumbnail( $post->ID, 'featured', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ) ) ).'</a>';
	  			$image .= '</figure>';

	  			echo $image;
	  		}
  			?>
			<header class="entry-header">
    			<h2 class="entry-title">
    				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute();?>"><?php the_title(); ?></a>
    			</h2><!-- .entry-title -->
  			</header>

  			<div class="entry-content clearfix">
    			<?php the_content(); ?>
  			</div>

  			<?php do_action( 'travelify_after_post_content' ); ?>

  			<?php do_action( 'travelify_before_post_meta' ); ?>

  			<div class="entry-meta-bar clearfix">	        			
    			<div class="entry-meta">
	    				<span class="author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author(); ?></a></span>
	    				<span class="date"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_time() ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a></span>
	    				<?php if( has_category() ) { ?>
	             		<span class="category"><?php the_category(', '); ?></span>
	             	<?php } ?> 
	    				<?php if ( comments_open() ) { ?>
	             		<span class="comments"><?php comments_popup_link( __( 'No Comments', 'travelify' ), __( '1 Comment', 'travelify' ), __( '% Comments', 'travelify' ), '', __( 'Comments Off', 'travelify' ) ); ?></span>
	             	<?php } ?>		          				
    			</div><!-- .entry-meta -->
    			<?php
    			echo '<a class="readmore" href="' . get_permalink() . '" title="'.the_title( '', '', false ).'">'.__( 'Read more', 'travelify' ).'</a>';
    			?>
    		</div>

    		<?php do_action( 'travelify_after_post_meta' ); ?>

		</article>
	</section>
<?php
			do_action( 'travelify_after_post' );

		}
	}
	else {
		?>
		<h1 class="entry-title"><?php _e( 'No Posts Found.', 'travelify' ); ?></h1>
      <?php
   }
}
endif;

Might sounds complicated but it is just copy/paste action :slight_smile:

Hey,

i open content-extensions.php file, and on 133 line there is no <?php the_excerpt(); ?> line…

instead i see-> travelify_theloop_for_template_blog_image_large();

but i found <?php the_excerpt(); ?> in line 265 and 737 and 895 and 1119 …

so where i need to change it ?

Hey,
i open content-extensions.php file, and on 133 line there is no <?php the_excerpt(); ?> line…
instead i see-> travelify_theloop_for_template_blog_image_large();
but i found <?php the_excerpt(); ?> in line 265 and 737 and 895 and 1119 …
so where i need to change it ?

also i create theme folder travelify-child in same directory as travelify. Then i create functions.php file and paste your code into it.

Do i do everything right ?

OK GREAT FIXED :slight_smile:

i just maked all in original theme , and now it works !

Cool , where are you learned to code ? I learn html , css , but jquery and php for me is big deal…

So how you learn and where ? thx

For HTML/CSS I started with this tutorual: https://courses.tutsplus.com/courses/30-days-to-learn-html-css It is easy to get throught withing few days if you are motivated enought. This is great place to start for sure.

Then I went directly to this tutorials related to WordPress themes: http://themeshaper.com/2012/10/22/the-themeshaper-wordpress-theme-tutorial-2nd-edition/ It is very detailed instruction on how to build your own WordPress themes. It is based on WordPress starter theme called Underscore (_s).

Then I got through this one to get to know some PHP: http://devzone.zend.com/6/php-101-php-for-the-absolute-beginner/

The main thing is to practice all the way. Once your tutor says that you should start building, then actually try to do so instead of copying. I built some 5 WordPress themes just for practice and they will never be released because they are really bad. :slight_smile:

From there it is matter what knowledge you feel are missing and start digging.

Currently I am learning Rails and jQuery/JavaScript. You must know what you want to build and achieve before you start learning (Your own SaaS, WordPress theme or even work as freelance web developer or get a full time job somewhere). If you will just read, you will get nowhere.

Hi,
It’s been some years since this conversation. And the code that’s intended for child theme’s functions file to make categories full content pages doesn’t work. Wordpress goes blank when i add this code to my child theme’s functions file. I’m using your travelify child theme plugin. Very grateful to get some help with this. I want to make category pages show full content without the read more button and i want to do this in my child theme, not change the orginal content_extension file. Thank you so much!