-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Setting for Show Teaser #16
Comments
Andrew, Yes user should can choose trimmed content or full content for the index page. Not from the theme to keep it light in codes but in functions.php (not confusing if people want to create their own theme), and we should change this call to somethings simple:
becomes:
Actually its enough since in function get_teaser we can extract it, |
The idea of putting it in the config means we can call $p->body and based on the config we format the output. |
Yes we creating new setting on config, let say:
and to get the value we just need to call:
Thanks to dispatch for this simplicity :) |
+1 |
And we need to add one more file |
I already commit the changes, please try it. Download the master branch |
This should be put in the config as show full post content or show teaser.
Then user can decide what they want to show.
Then in the theme we can have a statement to check config for setting before showing content in main.HTML.php
The text was updated successfully, but these errors were encountered: