• Hi,
    For each category, when the list of posts is displaying (pages of categories), I shall wish that when a text is enter in the excerpt of the post, the page display the excerpt (for this post) and when the excerpt is empty, the page display all the content of the post.

    Could you please tell me how I can do it ?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hmmm, that sounds like some pretty complex php scripting, and again, it would require a Child Theme and some pretty good knowledge of php scripting.

    I would suggest posting to https://jobs.wordpress.net/ and see if there is someone willing to take on these sort of changes, and get an estimate cost for such a thing. I would ask them about the other issue you posted on, post navigation within a category page.

    Thread Starter makai93

    (@makai93)

    Hi,
    In child-theme, I copied content.php and I modified this :

    if ( is_category('6')  ) {
    	the_excerpt(sprintf(...)
    	...
    } else {
    	the_content( sprintf(...)
    	...
    }

    And I add an excerpt in posts of category-id=6.
    It isn’t the right way but now it’s ok for me

    If it can be of use to somebody

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category template’ is closed to new replies.