misthero
Forum Replies Created
-
Forum: Themes and Templates
In reply to: can't get featured image url using get_post_metaif you have something like this:
add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 226, 135 ); add_image_size( 'gallery-link', 96, 60, true ); gallerie
you can use inside your loop:
<!-- get url for thumbnail gallery-link --> <?php $galleryurl = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'gallery-link' ); ?>
and use it like this:
<a href="<?php echo $galleryurl[0]; ?>" > link </a>
Shoudn’t this be considered a bug someway? I mean WP should check if the taxonomy exist..
I have tried recreating those exact taxonomies to remove those from the menu before deleting the taxonomies itself again.. but no luck.. I cannot access the menu anymore..
I have the exact same error after deleting some custom taxonomies:
Object of class WP_Error could not be converted to string in /home/greg2205/public_html/wp-includes/formatting.php on line 433
anyone can post the solution please?
well I can say that the issue is solved after changing the div ids to classes, I can’t notice any issue.
ok .. I was getting crazy because I tought that the ID comment-user-detail was some default in wordpress and couldn’t fint it, until I got you definet it in the sfc-comments.php.
what I have done is changing
add_action('comment_form_before_fields', 'comment_user_details_begin',1,0); function comment_user_details_begin() { echo '<div id="comment-user-details">'; }
to
add_action('comment_form_before_fields', 'comment_user_details_begin',1,0); function comment_user_details_begin() { echo '<div class="comment-user-details">'; }
and:
jQuery('#comment-user-details').
to
jQuery('.comment-user-details').
then I changed to a class the “sfc_comm_send” too and defined:
jQuery('.sfc_comm_send').html
this way the “share comment on facebook” checkbox is displayed for every post.
don’t know why it’s not selected by default now, but this already is a big step on for me :p
I’m only scared that if you udate the plugin I will lose all those changes now…
and.. probably it doesn’t change #comment-user-detail beacuse it is an ID and not a class and Ids are supposed to appear only once per page..
that’s drive me back to my secondary question.
ho do I crate a filter for the comment_form function to change the container id/class?
ok really it IS working, and you can comment, but appear like it is not because it doesn’t hide the #comment-user-detail. and the “connect with facebook” button.
I think the problem is with this jQuery
// Show their FB details TODO this should be configurable, or at least prettier...<br /> if (!jQuery('#fb-user').length) {<br /> jQuery('#comment-user-details').hide().after("<span id='fb-user'>" +<br /> "<fb:profile-pic uid='loggedinuser' facebook-logo='true' size='small' height='30'></fb:profile-pic>" +<br /> "<span id='fb-msg'><strong><fb:intl>Hi</fb:intl> <fb:name uid='loggedinuser' useyou='false'></fb:name>!</strong><br /><fb:intl>You are connected with your Facebook account.</fb:intl>" +<br /> "<a href='#'>\"); return false;'>Logout</a>" +<br /> "</span></span>");<br /> jQuery('#sfc_comm_send').html('<input style="width: auto;" type="checkbox" id="sfc_comm_share" /><label for="sfc_comm_send"><fb:intl>Share Comment on Facebook</fb:intl></label>');<br /> }<br />
Probably I’m wrong, I’m not a javascript expert, but I think this work only for the first instance and do nothing with the rest… maybe
thankyou for you answer Otto, I know that, and it’s working in my site.
I need to explain the problem better.
I can login with facebook and comment in single.php
but I have created a page with 5 posts and every post have comments displayed below. Just like in a facebook wall page where you can comment for every item you have.
What happen there is that I can comment only on the first post! Other posts out of the wp-query shows “login with facebook” but cannot comment there…( unless I’m logged on WP normally )
you can see what I’m trying to describe here: https://lukart.net/facebook/
as a side question I’m even triyng to create a filter for the the function <?php comment_form(); ?>
like you explained here: https://ottopress.com/2010/wordpress-3-0-theme-tip-the-comment-form/I would like to add
<div id="comment-user-details"><br /> <?php do_action('alt_comment_login'); ?><br /> </div>
around the comment form, have you some hint for that?
ok problem solved, it was a dns issue.
thank you Otto for you patience and spending some time here giving support! ??
thank you very much Otto for your answer ( and your plugin)
I think I cannot make it faster if facebook cannot load a 300px jpg image, not even using the direct-link on my facebook wall. If you are sure this is the problem in my case I will consider moving to a different host provider…
thank you againg.
update: it’s weird, I cannot share even the images directly entering the url of the picture on facebook it des not come up
https://lukart.net/wp-content/uploads/2010/08/berlusca-300×300.jpg
this is surely not a problem with SFC, but if you have any suggestion I will be very pleased..
Forum: Fixing WordPress
In reply to: Unable to switch off post revisionsI have the same issue, I want to get rid of post revisions without plugins, and
define(‘WP_POST_REVISIONS’, false);
is not working anymore
wp 2.8.3 doesn’t fix the issue.
Forum: Requests and Feedback
In reply to: “Warning: array_merge()” when editing/updating commentsok solved, it was DB-cache plugin issue not being compatible with wordpress 2.8
disabling DB-cache fixed the problem, the funny thing was I recently installed the plugin to make the site faster and to solve some other issue with my host…
Forum: Requests and Feedback
In reply to: “Warning: array_merge()” when editing/updating commentsupdate: same issue on another blog of mine:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/lukartne/public_html/wp-includes/comment.php on line 1097
Warning: Cannot modify header information – headers already sent by (output started at /home/lukartne/public_html/wp-includes/comment.php:1097) in /home/lukartne/public_html/wp-includes/pluggable.php on line 865