ThemeShaper Forums » Thematic

[closed]

full posts in archive pages

(7 posts)
  • Started 3 years ago by davitma
  • Latest reply from helgatheviking
  • This topic is resolved
  1. Hi,

    I'm using thematic power blog it only shows post summary in archive pages. I had the same issue with category pages but as seen here added this code:

    function childtheme_content($content) {
    	if (is_category()) {
    		$content= 'full';}
    	return $content;
    }
    
    add_filter('thematic_content', 'childtheme_content');

    how can i do the same for archive pages? and tags as well?

    thank you

    Posted 3 years ago #
  2. hey guys can anyone please help?

    Posted 3 years ago #
  3. first it isnt usually considered a good idea to have the same article in its entirety in multiple places on your site. you can get a duplicate content penalty from google.. they'll basically look at your site as spam.

    but if you want, you can do the exact same thing w/ more conditional logic.

    the whole thematic_content function (in the extensions folder under content extensions) looks like:

    //creates the content
    function thematic_content() {
    	if (is_home() || is_front_page()) {
    		$content = 'full';
    	} elseif (is_single()) {
    		$content = 'full';
    	} elseif (is_tag()) {
    		$content = 'excerpt';
    	} elseif (is_search()) {
    		$content = 'excerpt';
    	} elseif (is_category()) {
    		$content = 'excerpt';
    	} elseif (is_author()) {
    		$content = 'excerpt';
    	} elseif (is_archive()) {
    		$content = 'excerpt';
    	}

    you can see that it is set to excerpt for the types of pages you'd like to change back to full. so you would expand your child function by adding conditions for archives and tags

    function childtheme_content($content) {
    	if (is_category()) {
    		$content= 'full';}
            elseif (is_tag(){
                    $content= 'full';}
            elseif (is_archive() {
                    $content= 'full';}
    	return $content;
    }
    
    add_filter('thematic_content', 'childtheme_content');

    for more on WP conditional logic: http://codex.wordpress.org/Conditional_Tags

    Posted 3 years ago #
  4. helgatheviking

    thank you so so much for your answer. :)

    Posted 3 years ago #
  5. helgatheviking
    This is also what i want to do and thank you for your reply.
    I need to ask very basic question.
    I cant find thematic_content function.I know i am missing some steps.
    Would you please help me where is this function and where should i change the code
    Also you mentioned that it is not good idea to have duplicated content, what i want to have is a thumbnail gallery of my photos what is you recommendation ?
    Man thanks

    Posted 3 years ago #
  6. I am using the above mentioned code to create an index page consisting of the post title and the excerpt of a post with the category 'index'. I would also like the post to appear in a list of projects on another page. I can do this by assigning an extra category to the post. However I don't want the excerpt to be visible within the list. Only the title should be visible. Somehow I am not able to do this.
    Does anybody have an idea if and how this can be done?

    Posted 3 years ago #
  7. immediate thought is that you need to create another content "type" (that isnt the best word given WP's nomenclature but still). Thematic basically has excerpt and full post options... and then toggles between the 2 depending on where you are. you'll need to define another option (maybe called "title") filtered into thematic_content_init and then define what that looks like by filtering into thematic_content.... (i think)

    @pooria- you will probably never read this, but sorry i missed your post. hope you got it sorted.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.