RezaY
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Shortcodes not working in category or tag descriptionmy shortcode is
function my_shortcode() { ob_start(); require_once(get_template_directory() . '/html/htmlcontent.php'); $content = ob_get_contents(); ob_end_clean(); return $content; } add_shortcode("shortcode","my_shortcode");
but when I use the below code everything fine. but I need the above code
function my_shortcode() { $url = get_template_directory() . '/html/my_shortcode.php'; $content = file_get_contents($url); return $content; }
Forum: Plugins
In reply to: [WP-Persian] ?????? ??? ????? ?????? ???? ??? ?????? ????????? ????!
Forum: Plugins
In reply to: [WP-Persian] ?????? ??? ????? ?????? ?? ???? ???? ?? ????
Forum: Plugins
In reply to: [kk Star Ratings - Rate Post & Collect User Feedbacks] Undefined indexI got this
Use of undefined constant ‘reset’ – assumed ‘‘reset’’ (this will throw an Error in a future version of PHP)
Use of undefined constant ‘__’ – assumed ‘‘__’’ (this will throw an Error in a future version of PHP)
Forum: Plugins
In reply to: [Yoast SEO] PHP Notice: Trying to get property ‘user_login’ of non-objectI went into the “Search Appearance” settings for Yoast. I set myself as the “person” that the site represents. The code went away.
Forum: Plugins
In reply to: [AJAX Login and Registration modal popup + inline form] lost passwordWhat’s up? I am still waiting for the new update ??
Forum: Plugins
In reply to: [AJAX Login and Registration modal popup + inline form] Google Apps Loginthanks for your reply
all of them are for pro version?Forum: Plugins
In reply to: [AJAX Login and Registration modal popup + inline form] lost passwordPlease do it as soon as possible.
Its really important and the default reset page has awfull style! ??Forum: Plugins
In reply to: [AJAX Login and Registration modal popup + inline form] iThemes SecurityI enable re-captcha in iThemes Security Pro, but it does not show in login form!
Forum: Plugins
In reply to: [Yoast SEO] Notice X : wordpress-seo/inc/class-wpseo-meta.php:393I have the same issue
Forum: Plugins
In reply to: [Fast Velocity Minify] Problem with Yoast SEOThanks for your quick response.
I turned off “Force rewrite titles” in Yoast SEO.
and the problem has been solved.- This reply was modified 6 years, 5 months ago by RezaY.
Forum: Plugins
In reply to: [Fast Velocity Minify] Problem with Yoast SEOWhen I checked ” Disable CSS processing[ If selected, this plugin will ignore CSS files completely ]” every thing is ok.
But if I checked other “CSS OPTION”, my style.css not loaded.
I have 2 options:
– checked ” Disable CSS processing”
– disable Yoast SEOForum: Plugins
In reply to: [LiteSpeed Cache] Fix post view in lightspeed cacheI put these in function.php
function getPostViews($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if ($count == '') { delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); return "0 View"; } return $count . ' Views'; } function setPostViews($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if ($count == '') { $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); } else { $count++; update_post_meta($postID, $count_key, $count); } } // Remove issues with prefetching adding extra views remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0); LiteSpeed_Cache_API::hook_tpl_esi('your_count_esi', 'hook_esi' ); function hook_esi( $param ) { setPostViews( $param[ 'id' ] ) ; exit; }
and this in single php
`
<?php
echo LiteSpeed_Cache_API::esi_url( ‘your_count_esi’, ‘RezaY test’, array( ‘id’ => get_the_ID() ) ) ;?>
<?php echo getPostViews(get_the_ID()); ?>
`but after
echo lightspeed
it shows my homepage with all of my recent post!- This reply was modified 6 years, 9 months ago by RezaY.
Forum: Plugins
In reply to: [LiteSpeed Cache] Fix post view in lightspeed cacheit didnt work.
it echo a list of may recent post!Forum: Plugins
In reply to: [LiteSpeed Cache] Fix post view in lightspeed cachethanks for your quick replay
is there Fragment Caching in light speed cache?
in this tutorial it fix it on W3 total cach