Syahir Hakim
KeymasterKuala Lumpur, Malaysia
When not perched on my workspace, I tremendously enjoy hiking in the bushes and climbing mountains. They serve as much-needed refuges from the pretense of cities.
Forum Replies Created
-
Admin
Yeah, you would need to create a custom function for that. Or maybe look for a plugin that displays posts/pages based on date?
Admin
See my reply to practically the same question here: https://forum.graphene-theme.com/graphene-support/categories-strip-post-of-links-and-images#post-10000
Admin
In reply to: Mobile Plugin won't activate – says "The plugin does not have a valid header."
October 27, 2011 at 11:16 pm #18888Hi Aaron,
This topic is marked as “Resolved”. Are you still having an issue? If yes, see this topic for the answer to your query: https://forum.graphene-theme.com/graphene-mobile-support-requests/the-plugin-does-not-have-a-valid-header
Admin
There’s no “small biz options” panel in the theme. What makes you think there is one?
Admin
I just tried this code in a child theme, and it works in placing both the comments and comment form on the front page posts listing:
<?php
function graphene_force_comment(){
if ( is_home() ){
global $withcomments;
$withcomments = true; // force comments form and comments to show on front page
comments_template();
}
}
add_action( 'graphene_loop_footer', 'graphene_force_comment' );
?>Are you sure you’ve implemented the function and child theme correctly?
Admin
The categories archive page uses excerpts instead of the full content of the posts, and WordPress by default strips all HTML tags from the excerpts.
However, the theme does provide an option to retain HTML tags for excerpts. Go to WP Admin > Appearance > Graphene Options > Display > Excerpts Display Options, and insert the following into the “Retain these HTML tags in excerpts” option:
<p><a>Admin
You would have to attach it to the
graphene_loop_footerhook which is inside the posts loop, and not thegraphene_bottom_contenthook which is outside of the posts loop. This is because the comments template need to be run for each post, which requires it to be inside the posts loop. Otherwise it’ll just run once, taking the comment data from the last post being displayed.Admin
In reply to: SEO – Complete controle over H1 title – Not the permalink in the archive
October 27, 2011 at 1:41 am #18772When you edit a post or a page, you can manually edit the permalink, which means the permalink doesn’t have to be the same as the post’s title.
When editing a post, just click on the “Edit” button next to the permalink to edit it.
Admin
Add this CSS to hide the slider’s “View full post” button:
.slider-entry-wrap {
display: none;
}Admin
Try this instead:
<?php
function graphene_force_comment(){
if ( is_home() ){
$withcomments = 1; // force comments form and comments to show on front page
comments_template();
}
}
add_action( 'graphene_loop_footer', 'graphene_force_comment' );
?>
