yellow82
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Editorial] remote picture URLI send mail thank you
Forum: Themes and Templates
In reply to: [Editorial] remote picture URLNo add this plugin pictures WordPress loads Pictures library. I would like to show you the first picture url , But I could not do it exactly
How do i help please
I could not do it with that
A similar code:functions.php function catch_that_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); $first_img = $matches[1][0]; if(empty($first_img)) { $first_img = "/path/to/default.png"; } return $first_img; }
loop.php
if ( get_the_post_thumbnail($post_id) != ” ) {echo ‘‘;
the_post_thumbnail();
echo ‘‘;} else {
echo ‘‘;
echo ‘<img src=”‘;
echo catch_that_image();
echo ‘” alt=”” />’;
echo ‘‘;}
Forum: Developing with WordPress
In reply to: how to change wordpress magazin theme all post urlsory my url
https://www.xxxxxxxx.com/?index=post
https://www.xxxxxxxx.com/page/2/?index=post
https://www.xxxxxxxx.com/page/3/?index=post
https://www.xxxxxxxx.com/page/4/?index=post
https://www.xxxxxxxx.com/page/5/?index=postmy like
https://www.xxxxxxxx.com/page/1
https://www.xxxxxxxx.com/page/2/
https://www.xxxxxxxx.com/page/3/- This reply was modified 7 years, 9 months ago by yellow82.
Forum: Developing with WordPress
In reply to: how to change wordpress magazin theme all post urlmy theme code: function wpi_pagenav_index(){ }
and
<?php echo wpi_pagenav_index(); ?>
Could it be the reason ?
Forum: Developing with WordPress
In reply to: how to change wordpress magazin theme all post url# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTP_HOST} !www.xxxxx.com
RewriteRule ^(.*)$ “https://www.xxxxx.com/” [R=301,L]
RewriteCond %{HTTP_HOST} ^xxxxx.com
RewriteRule (.*) https://www.xxxxx.com/$1 [R=301,L]
RewriteCond %{ENV:HTTPS} on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule># END WordPress
Forum: Plugins
In reply to: [WP-PostRatings] AggregateRating errorOk , if I use AggregateRating with this error , can google index my topics with star rating
Forum: Plugins
In reply to: [WP-PostRatings] AggregateRating errorI use remote picture URL How to show your site logo
This is not for the remote picture
add_filter( ‘wp_postratings_site_logo’, ‘wp_postratings_site_logo’ );
function wp_postratings_site_logo( $url ) {
return ‘https://placehold.it/350/150.png’;Something similar? plzz
- This reply was modified 7 years, 9 months ago by yellow82.
Forum: Plugins
In reply to: [WP-PostRatings] Love the plugin, questionsI use remote picture URL , for example most of my topic include URL like this:
https://3.bp.blogspot.com/-cR_7KLccvBM/WJ7h-yanzRI/AAAAAAAA6ps/hIk6C6Ha0eQzwIUaFpgYEkA6sY1bheTnwCLcB/s1600/ss.jpg
I used your code in “functions.php” but your code fixed ony my own hosted picture URLs
how can I modify this code to fix the “A value for the image field is required.” error on Google rich snippet tool.
Thank you for the nice Plugin