Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get title and excertp from article in section #39

Open
ulcera opened this issue Jan 5, 2017 · 2 comments
Open

How to get title and excertp from article in section #39

ulcera opened this issue Jan 5, 2017 · 2 comments

Comments

@ulcera
Copy link

ulcera commented Jan 5, 2017

Hello, sorry for my english.
I've a question.
If I navigate to section page in frontend the theme see me my text and link about all article in this section.
I would like to expand this link adding exerpt from article (or text within read more button) for better use, as in search result.
It is possible?
Where I can modify div "article-child well" element?
Thansk a lot.
Lorenzo

@ulcera
Copy link
Author

ulcera commented Jan 5, 2017

I woul like to use /template/loop-content.php with the article in section page.
I would like to replace the part in red with the structure contained on the page /template/loop-content.php
Thanks
articoli

@shumbo
Copy link

shumbo commented Feb 18, 2017

@ulcera Hi.

https://gist.github.com/shumbo/47735eafdaf2ca3004cd5be1393be8cf#file-content-single-php-L20-L55

I made some changes in templates/content-single.php to display title with link and its excerpt. Since loop-content.php is not so complicated template, I think just writing the code to show the excerpt in content-single.php is the easiest way.

I hope this would help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants