nicholasag
Forum Replies Created
-
Hello,
1) yes I am using the most recent yoast seo plugin.
2) nope the right content does not appear if I scrape the post. Did you check the source code @pcosta88?
Did you notice that the meta tags and properties are not added on product pages?The URL is the following http://bouncha.com/product/abc1/
All the product pages are affected.Please help.
I mean I could add the meta tags for facebook manually like so:
function fb_opengraph() { global $post; if( is_product() ) { if(has_post_thumbnail($post->ID)) { $img_src = wp_get_attachment_image_src(get_post_thumbnail_id( $post->ID ), 'medium'); } else { $img_src = get_stylesheet_directory_uri() . '/img/opengraph_image.jpg'; } if($excerpt = $post->post_excerpt) { $excerpt = strip_tags($post->post_excerpt); $excerpt = str_replace("", "'", $excerpt); } else { $excerpt = get_bloginfo('description'); } ?> <meta property="og:title" content="<?php echo the_title(); ?>"/> <meta property="og:description" content="<?php echo $excerpt; ?>"/> <meta property="og:type" content="article"/> <meta property="og:url" content="<?php echo the_permalink(); ?>"/> <meta property="og:site_name" content="<?php echo get_bloginfo(); ?>"/> <meta property="og:image" content="<?php echo $img_src; ?>"/> <?php } else { return; } } add_action('wp_head', 'fb_opengraph', 5);but I thought your plugin is gonna do that for me.
Forum: Plugins
In reply to: [Wp Login with Ajax] Execute jQuery code after successful loginyes it works with that plugin.
Forum: Plugins
In reply to: [Wp Login with Ajax] Execute jQuery code after successful loginok thanks.
I’ll use this plugin then
https://ww.wp.xz.cn/plugins/login-with-ajax/Forum: Plugins
In reply to: [Wp Login with Ajax] Execute jQuery code after successful loginThank you. What is your plugins login event called?
“jQuery(document).on(‘?’, function(event, data, form){
if(data.result === true){
//do something
}…”- This reply was modified 8 years, 11 months ago by nicholasag.
Forum: Plugins
In reply to: [Wp Login with Ajax] Execute jQuery code after successful loginDo you mind providing a code example of how I would execute custom jQuery upon login using your plugin, because the one I tried above is not working for me.
“jQuery(document).on(‘lwa_login’, function(event, data, form){
if(data.result === true){
//do something
}…”Thanks,
NicholasForum: Plugins
In reply to: [Wp Login with Ajax] Execute jQuery code after successful loginHello thank you.
How would I do it?
Do you mind providing a short code example.Regards,
Nicholas- This reply was modified 8 years, 11 months ago by nicholasag.
Forum: Plugins
In reply to: [Wp Login with Ajax] 50+ JSLint ProblemsHello thank you for your answer. I just wanted to inform you about these errors.
I haven’t had any issues with your plugin so far.
Good job.Would something like this work?
function user_login_redirect( $url, $request, $user ){
$page_referrer = wp_get_referer();
if (strpos($page_referrer,’login-register’) !== false || strpos($page_referrer,’contact’) !== false) {if( $user && is_object( $user ) && is_a( $user, ‘WP_User’ ) ) {
if( $user->has_cap( ‘administrator’ ) ) {
$url = admin_url();
}else {
$url = = home_url(‘/#comments_link’);
}
}
}
return $url;
}
add_filter( ‘login_redirect’, ‘user_login_redirect’, 10, 3 );Hey. I’d like to refresh the page only on specific pages. I thought your shortcode parameter allows me to do this?
Do you know how I refresh the current page + add an anchor link to the url, so that the user scrolls back to the comments?
[lwa template=”default” redirect=”#comments_link”]Regards,
NicolasHey.
Thank you for your answer.
What selectors?Forum: Plugins
In reply to: [Login With Ajax - Fast Logins, 2FA, Redirects] Error when I log in with ajaxNO problem
Version 3.1.7Forum: Plugins
In reply to: [Login With Ajax - Fast Logins, 2FA, Redirects] Error when I log in with ajaxVersion 4.7.5.
What’s the Events Manager?Forum: Plugins
In reply to: [Login With Ajax - Fast Logins, 2FA, Redirects] Error when I log in with ajaxI deactivated all plugins and switched back to the standard theme.
Unfortunately the issue still occurs and only occurs when I log in via Ajax.It’s related to this file /wp-includes/js/jquery/jquery.js?ver=1.12.4
Thank you for your help.
Forum: Plugins
In reply to: [Login With Ajax - Fast Logins, 2FA, Redirects] Error when I log in with ajaxForum: Plugins
In reply to: [Post Views Counter] Meta keys created in the databaseAwesome. Thank you 😉