soapy
MemberForum Replies Created
-
Hey Josh, as always, thanks for your reply. I pasted your code into my child theme functions.php….but it didn’t do anything. Here is my file:
<?php
function searchfilter($query) {
if ($query->is_search) {
$query->set('post_type',array('post'));
}
return $query;
}
add_filter('pre_get_posts','searchfilter');
// Change some strings
function graphene_filter_readmore( $translated, $original, $domain ) {
$strings = array(
'Continue reading »' => 'CONTINUE READING!!',
'Read the rest of this entry »' => 'CONTINUE READING!!',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_readmore', 10, 3 );
function custom_excerpt_length($length) {
return 40; // Change this to whatever you want.
add_filter('excerpt_length', 'custom_excerpt_length');
}
?>Did I do something wrong? I changed the value to 40…but when I click on my category archives….its still the same as before….it still goes with the default length?
Any thoughts?
Yep…I was snooping around as well…looks like Egotastic and The Superficial are owned by the same company….so it was probably a plugin built just for them. Too bad….it has great functinality…wish I could find something similar…
Josh, Thanks for your help…but I don’t think I can accomplish what I want with this method.
Here’s my problem…sticking with the cars example. Lets say all my car posts are under the category “cars”. Now, I’m going to have a “car of the day” category…and I want this category to be hidden from the front page. So, I might have 10 posts under the “cars” category….and one post which will be the car of the day. This post will have two categories….”cars” and “car of the day”. If I exclude the “car of the day” category from the front page….the post still shows up…because it is also associated with the “cars” category.
Note – I want the “car of the day” post to have both categories….because I want it to show up in the results when someone views the “cars” category archives…..as well as the “car of the day” category archives.
Josh…just to reiterate….ALL car posts get assigned to “cars”. And car posts that I want to appear on the front page…assign them to both “carsfront” and “cars”. Then make sure “carsfront” is included…and “cars” is excluded…correct?
No you don’t. Let me put it this way. Lets say in a category called “cars”, I have 3 posts. How do I show posts 1 and 3 in the main content section, but hide post 2. Also at the same time…if someone clicks on the “cars” category archives….I still want all 3 posts to show up in the results. I only want to hide post 2 from the main content section….I don’t want it completey hidden from the archives and search results
Thanks for the reply…but I don’t want to create a separate category….because some of the posts in the category I DO want to show up on the front page…and other posts from the same category I DON’T want them to show up on the same page….
I’m trying to put a link in my sidebar, which links to one of my posts. But…when i create this post…I don’t want it to display in the normal flow of posts in the main content. I only want this post accessible through a link that I will display in my right hand sidebar. So……I’m wondering if there is a plugin out there that someone is familiar with…that will give you the ability to hide a post from the normal flow of blog posts in the main content. BUT…still allow the user access to this post if I create a link for it in the sidebar…
Luko,
I don’t want to create a separate category…because I want the ability to hide a post in any of my categories. Do you know of a good plugin that can accomplish this?
Ken,
I’m confused…how is that going to help me determine what the plugin is?
Hey Ken,
It is wordpress…and I found this…
href=’http://egotastic.com/wp-content/plugins/bm-ice/css/posts/video/video.css?ver=3.2.1′ type=’text/css’ media=’all’ /
I tried doing a search for a plugin named bm-ice….but nothing??? Make any sense to you?
