Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter yegor.money.mag

    (@yegormoneymag)

    If you understand the changes that he made, maybe show them to others.

    To remind you, what I wanted is to see only titles when open category.

    For better reference, wisit my blog easyfastpotatorecipes.com and click on a category to see what it looks like.

    Thank you all for help

    Thread Starter yegor.money.mag

    (@yegormoneymag)

    Hi guys,

    Thank you very much for your help. I’m to newbe to understand what you explained to me. A friend of mine helped me with my issue.
    He is the owner of https://www.controlweightdancing.com/

    He worked with my content.php and did some changes. I would like to point the exact changes but it’s to hard for me because I don’t understand them. So if someone wise will do it, it would be great.

    Here is my entire content.php

    <?php
    /**
    * The default template for displaying content
    *
    * @package WordPress
    * @subpackage Twenty_Eleven
    * @since Twenty Eleven 1.0
    */
    ?>

    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <header class=”entry-header”>
    <?php if ( is_sticky() ) : ?>
    <hgroup>
    <h2 class=”entry-title”>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyeleven’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></h2>
    <h3 class=”entry-format”><?php _e( ‘Featured’, ‘twentyeleven’ ); ?></h3>
    </hgroup>
    <?php else : ?>
    <h1 class=”entry-title”>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyeleven’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></h1>
    <?php endif; ?>

    <?php if ( ‘post’ == get_post_type() ) : ?>
    <div class=”entry-meta”>
    <?php if (!is_category() ) : ?>
    <?php twentyeleven_posted_on(); ?>
    <?php endif; ?>
    </div><!– .entry-meta –>
    <?php endif; ?>

    <?php if ( comments_open() && ! post_password_required() ) : ?>
    <div class=”comments-link”>
    <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Reply’, ‘twentyeleven’ ) . ‘</span>’, _x( ‘1’, ‘comments number’, ‘twentyeleven’ ), _x( ‘%’, ‘comments number’, ‘twentyeleven’ ) ); ?>
    </div>
    <?php endif; ?>
    </header><!– .entry-header –>

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    <div class=”entry-summary”>
    <?php the_excerpt(); ?>
    </div><!– .entry-summary –>
    <?php elseif ( !is_category() ) : ?>
    <div class=”entry-content”>
    <?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘twentyeleven’ ) ); ?> <?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”><span>’ . __( ‘Pages:’, ‘twentyeleven’ ) . ‘</span>’, ‘after’ => ‘</div>’ ) ); ?>
    </div><!– .entry-content –>
    <?php endif; ?>

    <footer class=”entry-meta”>
    <?php $show_sep = false; ?>
    <?php if ( ‘post’ == get_post_type() ) : // Hide category and tag text for pages on Search ?>
    <?php
    /* translators: used between list items, there is a space after the comma */
    $categories_list = get_the_category_list( __( ‘, ‘, ‘twentyeleven’ ) );
    if ( $categories_list ):
    ?>
    <?php if (!is_category() ) : ?>
    <span class=”cat-links”>
    <?php printf( __( ‘<span class=”%1$s”>Posted in</span> %2$s’, ‘twentyeleven’ ), ‘entry-utility-prep entry-utility-prep-cat-links’, $categories_list );
    $show_sep = true; ?>
    </span>
    <?php endif; ?>
    <?php endif; // End if categories ?>
    <?php
    /* translators: used between list items, there is a space after the comma */
    $tags_list = get_the_tag_list( ”, __( ‘, ‘, ‘twentyeleven’ ) );
    if ( $tags_list ):
    if ( $show_sep ) : ?>
    <span class=”sep”> | </span>
    <?php endif; // End if $show_sep ?>
    <span class=”tag-links”>
    <?php printf( __( ‘<span class=”%1$s”>Tagged</span> %2$s’, ‘twentyeleven’ ), ‘entry-utility-prep entry-utility-prep-tag-links’, $tags_list );
    $show_sep = true; ?>
    </span>
    <?php endif; // End if $tags_list ?>
    <?php endif; // End if ‘post’ == get_post_type() ?>

    <?php if ( comments_open() && !is_category() ) : ?>
    <?php if ( $show_sep ) : ?>
    <span class=”sep”> | </span>
    <?php endif; // End if $show_sep ?>
    <span class=”comments-link”><?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a reply’, ‘twentyeleven’ ) . ‘</span>’, __( ‘<b>1</b> Reply’, ‘twentyeleven’ ), __( ‘<b>%</b> Replies’, ‘twentyeleven’ ) ); ?></span>
    <?php endif; // End if comments_open() ?>

    <?php edit_post_link( __( ‘Edit’, ‘twentyeleven’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
    </footer><!– #entry-meta –>
    </article><!– #post-<?php the_ID(); ?> –>

    Thread Starter yegor.money.mag

    (@yegormoneymag)

    I installed:

    Category Posts Widget
    Version 3.2

    I did:
    3. Find this code (in the twentyeleven theme):

    I understand step 4 but not the step 5.

    I have like 13 categories. when I open in browser let say:
    https://easyfastpotatorecipes.com/category/all_about_potatoes/

    I don’t see the category ID. Or I should look eslwhere.

    If I go on dashboard it looks like this:
    https://easyfastpotatorecipes.com/wp-admin/plugins.php

    I will try to find more info about he category ID.

    Thread Starter yegor.money.mag

    (@yegormoneymag)

    Thank you guys for help, your advices are probably great but too complicated for me. I tried to apply them ( not all at the same time) but always get stuk somewhere. I will continue to try to find a step by step tutorial for dumies ??

    Thread Starter yegor.money.mag

    (@yegormoneymag)

    I found this information:

    Enforce excerpts
    To enforce WordPress to show excerpts for all articles we have to modify the content.php of twenty eleven.
    Find the following code:

    <div class=”entry-summary”>
    <?php the_excerpt(); ?>
    </div><!– .entry-summary –>
    <?php else : ?>
    <div class=”entry-content”>
    <?php the_content( __( ‘kompletter Artikel >> ‘. the_title_attribute (array(‘echo’ => 0) ) .’ <span class=”meta-nav”>→</span>’, ‘twentyeleven’ ) );?>
    And now replace it with the following snipped. Notice that only the last line has changed.

    <div class=”entry-summary”>
    <?php the_excerpt(); ?>
    </div><!– .entry-summary –>
    <?php else : ?>
    <div class=”entry-content”>
    <?php the_excerpt();?>
    That’s it. Now for all posts the article itself should be hidden and an excerpt should be shown instead.

    at: https://zeaks.org/enforce-and-customize-read-more-for-twenty-eleven-guest-post/

    But it modifyes all the posts everywhere.

    What I need, it’s when people click on a particular category, it shows a list of only titles of the posts. The main page must stay as is.

    Getting complicated now, thanks for helping

    Thread Starter yegor.money.mag

    (@yegormoneymag)

    To be more precise, I use the Twenty Eleven 1.2 Theme.

    What part I should edit? the category.php?

    Thread Starter yegor.money.mag

    (@yegormoneymag)

    Sorry, I’m a total newbe. How I do so.

    If possible step by step.

    Thank you very much!

Viewing 7 replies - 1 through 7 (of 7 total)