wp_guy
Forum Replies Created
-
Weird, because that plugin is supposed to adjust the comments number.
Could it be that you are using an older version of the plugin?
Forum: Fixing WordPress
In reply to: What Is <head profile=”https://gmpg.org/xfn/11″> ?Hahah… well I hadn’t heard of it either until now…
Apparently, apart from adding that bit to the head, you add a special rel attribute to links that link to your friends, co-workers, family members, girlfriends, etc.
For example you would link to your friend Bob like this:
<a href="https://myFriendBob.com" rel="met friend">Bob</a>
Here is some additional info: Defining_Relationships_with_XFN
It’s a little complicated, but can be done.
You have to add this bit of code to the ‘functions.php’ file of your theme: (preferably at the end, before the ‘?>’)
add_filter('get_comments_number', 'comment_count', 0); function comment_count( $count ) { global $id; $comments = get_approved_comments($id); $comment_count = 0; foreach($comments as $comment){ if($comment->comment_type == ""){ $comment_count++; } } return $comment_count; }
If the functions.php file doesn’t exist, create it.
Forum: Fixing WordPress
In reply to: What Is <head profile=”https://gmpg.org/xfn/11″> ?That is telling the browser that your site supports XFN.
And yes, it is safe to remove it, although it doesn’t hurt to leave it.
Forum: Fixing WordPress
In reply to: Show Posts Of a Certain Category On a PageIsn’t this: https://www.strikemma.com/category/videos/ what you mean?
Forum: Fixing WordPress
In reply to: How to get RSS feeder workingHave you tried with the URL of your feed instead of the URL of your blog?
e.g. https://www.petzoopply.com/?feed=rss2
And remember to type the ‘https://’ when typing URLs
Forum: Fixing WordPress
In reply to: Hard problem to manage as a newbie!Ideally you would insert the release date in a custom field: Using Custom Fields, and just to make things easier type a date that can be sorted easily (like 2008-12-31).
Then use a custom Select Query (Displaying Posts Using a Custom Select Query).
With a query such as:
SELECT wposts.*, wpostmeta.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.post_status = 'publish' AND wposts.ID = wpostmeta.post_id AND wposts.post_type = 'post' AND wpostmeta.meta_key = 'release_date' ORDER BY wpostmeta.meta_value
where ‘release_date’ is the name of your custom field.
And, you would add “ASC” or “DESC” to the end of that query depending on the order you want (ascending or descending).
Forum: Fixing WordPress
In reply to: Moving old posts to a new pageI suggested the category option but hey, if the guy asks for a page… why not! ??
Forum: Fixing WordPress
In reply to: Random Redirect for Attachments of a post.You can add this bit:
if ( isset( $_GET['random_attachment'] ) ) { $post_parent = $_GET['random_attachment']; $query = "SELECT ID FROM $wpdb->posts WHERE post_type = 'attachment' AND post_parent = '$post_parent' ORDER BY RAND() LIMIT 1"; }
Then get it like this: yourblog.com/?random&random_attachment=1 (for post ID 1)
Hope that helps
Forum: Fixing WordPress
In reply to: Moving old posts to a new pageYou could assign a different category to the expired posts.
Then make a page template that only loads posts from that particular category. Or simply use the yourblog.com/category/expired page.
If you don’t want those posts to stay in the main blog, use query_posts
something like:
query_posts("cat=-3") // 3 being the ID of the category you want to exclude
Hope that helps
Forum: Fixing WordPress
In reply to: What is foo.x=0&foo.y=0 in Sitesearch?If you change the form submit button to be an actual button instead of an image, yes.
Forum: Plugins
In reply to: getting post from your other wordpress blogIf both blogs share the same database, then it’s just a matter of doing an SQL query.
If they’re on different databases but the same server, it gets a little trickier, but still, you just connect to the other database and do the SQL query.
If they’re on completely different servers, then I’d say get your other blog’s feed, parse it and get the first post.
hope that helps
Forum: Fixing WordPress
In reply to: Index.php ALWAYS waiting 3 secondsCould it be some plugin that you have installed and loads an external javascript?
Would be helpful to know the address of your blog.
Forum: Plugins
In reply to: [Plugin: Popularity contest]As @roshanbh pointed out:
https://wpguy.com/tips/popularity-contest-plugin-compatibility-with-wordpress-25/
100 thank you comments can’t be wrong ??
Forum: Fixing WordPress
In reply to: Hidden Categories in Manage CategoriesHey there,
What version of WordPress are you using?