rhayashida
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Twitter Cards helpYou’ll need to update function for class-twitter.php. Which is located here on your sites server wp-content>plugins>wordpress-seo>front-end>class-twitter.php
Just swap out the code in this section
/**
* Displays the authors Twitter account.
*/public function author_twitter() { if ( isset( $this->options['twitter_site'] ) ) echo '<meta name="twitter:creator" content="@' . trim( $this->options['twitter_site'] ) . '"/>' . "\n"; }
Good luck!
RobForum: Fixing WordPress
In reply to: Media uploader no longer lets me choose filesHi Kathy,
the solution to problem is to check your wp-includes/js/swfupload folder for the following files :swfupload and swfupload_9 of one of those is missing the “Choose File” button will not appear. Just download a copy of 2.7 WordPress and upload the missing file on your server and it will correct the problem with the flash uploader. For some reason Automatic Upgrade plugin missed this file when upgrading my install. I had the same problem and this corrected it.Good Luck!
RForum: Fixing WordPress
In reply to: Media Gallery Shortcode Not WorkingIf this page is blank, than there is a typo.
function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false) { $id = intval($id); $_post = & get_post( $id ); if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) ) return __('Missing Attachment'); if ( $permalink ) $url = get_attachment_link($_post->ID); $post_title = attribute_escape($_post->post_title); $link_text = wp_get_attachment_image($id, $size, $icon); //modification introduced to force the gallery shortcode thumbnail hyperlink to the full size image directly, rather than the attachment page $url = wp_get_attachment_url($_post->ID); if ( !$link_text ) $link_text = $_post->post_title; return apply_filters( 'wp_get_attachment_link',"<a href=$url title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon ); }
I accidently pasted old version of the code. This is the updated version that corrected the problem.
R
Forum: Installing WordPress
In reply to: Bluehost is RUDE! Please recommend other hosting.You should checkout Joyent.com they have great support and reliable hosting at great prices.
Good Luck
RForum: Fixing WordPress
In reply to: Gallery shortcode doesn’t workI found a solution to this problem. Goto to this section of wp-includes/post-template.php and replace the code.
/**
* Retrieve an attachment page link using an image or icon, if possible.
*
* @since 2.5.0
* @uses apply_filters() Calls ‘wp_get_attachment_link’ filter on HTML content with same parameters as function.
*
* @param int $id Optional. Post ID.
* @param string $size Optional. Image size.
* @param bool $permalink Optional, default is false. Whether to add permalink to image.
* @param bool $icon Optional, default is false. Whether to include icon.
* @return string HTML content.
*/function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false) { $id = intval($id); $_post = & get_post( $id ); if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) ) return __('Missing Attachment'); if ( $permalink ) $url = get_attachment_link($_post->ID); $post_title = attribute_escape($_post->post_title); $link_text = wp_get_attachment_image($id, $size, $icon); //modification introduced to force the gallery shortcode thumbnail hyperlink to the full size image directly, rather than the attachment page $url = wp_get_attachment_url($_post->ID); if ( !$link_text ) $link_text = $_post->post_title; return apply_filters( 'wp_get_attachment_link',"<a href=$url title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon ); }
Make sure to backup your post-template.php file before modifying the code. Thanks to Mark Pederson for the solution.
R
Forum: Fixing WordPress
In reply to: Media Gallery Shortcode Not WorkingI have a solution to this problem;
in wp-includes/post-template.php replace the existing code for
Retrieve an attachment page link using an image or icon, if possible. * * @since 2.5.0
with this new code below:
/** * Retrieve an attachment page link using an image or icon, if possible. * * @since 2.5.0 * @uses apply_filters() Calls 'wp_get_attachment_link' filter on HTML content with same parameters as function. * * @param int $id Optional. Post ID. * @param string $size Optional. Image size. * @param bool $permalink Optional, default is false. Whether to add permalink to image. * @param bool $icon Optional, default is false. Whether to include icon. * @return string HTML content. */ function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false) { $id = intval($id); $_post = & get_post( $id ); if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) ) return __('Missing Attachment'); if ( $permalink ) $url = get_attachment_link($_post->ID); $post_title = attribute_escape($_post->post_title); $link_text = wp_get_attachment_image($id, $size, $icon); //modification introduced to force the gallery shortcode thumbnail hyperlink to the full size image directly, rather than the attachment page $url = wp_get_attachment_url($_post->ID); if ( !$link_text ) $link_text = $_post->post_title; return apply_filters( 'wp_get_attachment_link',"<a href="$url" title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon ); }
This corrected the gallery shortcode problem. Backup your original post-template.php before replacing this block of code.
Thanks to Mark Pedereson for the help on this.
R