Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter tuviaserber

    (@tuviaserber)

    I also have this code in my sidebar-primary.php:

    <?php dynamic_sidebar( 'primary' ); ?>
    
    		<?php echo "<h3>Avisos</h3>"; ?>
    		<?php query_posts('category_name=avisos&showposts=10'); ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<?php the_content(); ?>
    			<?php echo "<p>&nbsp;</p>"; ?>
    		<?php endwhile;?>

    Where should it be in the child theme?

    Also, what about theme translation to spanish, where should I put it?

    Thank you!

    Thread Starter tuviaserber

    (@tuviaserber)

    Thank you very much Sami. I’ll try this later. Should I mark the topic as solved?

    Thread Starter tuviaserber

    (@tuviaserber)

    I’ll try but I have a few questions:

    1) Will this affect all the information I already wrote?, like the posts and the pages I made.

    2) I created a few Templates for the kind of pages I use, for example, I have simple pages (default template), pages that list the posts of a certain category and pages that list the posts of two categories. All of this I created by copying a fresh index.php and adding some code. Where do I put this templates in the child theme?

    Thank you so much for getting involved on this!!

    Thread Starter tuviaserber

    (@tuviaserber)

    Hi Sami! I’m very happy you answered. I love your theme!.

    I’m not a pro on php, and this is my first (and probably last, since I don’t work on this, I’m just a rabbi with programming knowledge…) site with wordpress.

    One of my mistakes was not to make a child theme, I modified the parent theme…

    I ended up modifying content.php, after a lot of looking into the files and realizing the Hybrid framework and the shortcuts into the php code.

    Below you’ll find my idea. Please, send me the code snippet as it shou?d be…

    Thank you!!!

    <?php /* echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'Published by [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'path' ) . '</div>' ); */ ?>
    
    			<?php $post_id = get_the_ID(); ?>
    			<?php $cat = get_the_category($post_id); ?>
    			<?php if ( $cat[0]->cat_ID == 9 ) {  /* 9 es Editoriales */?>
    			<?php 	echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'Publicado en [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'path' ) . '</div>' ); ?>
    			<?php }	?>
    Thread Starter tuviaserber

    (@tuviaserber)

    Thank you for the reply! I sa the page, but it seams that the Path theme has different files… there are a few of the files listed there, but I don’t see where to delete or add the code to do what I want to: that only posts from one category show creation date.

Viewing 5 replies - 16 through 20 (of 20 total)