cedcommerce
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: create static pages and speed upHello flatworld21
Every time creation of static page is not perfect way.You can try caching plugins also to minimize database interaction.Forum: Fixing WordPress
In reply to: Why part of url's content displayed ?Hello luofeiyu,
I think you have selected post format as Link that is why WordPress fetches the link information, to change that you can select post format as Standard.Forum: Fixing WordPress
In reply to: Blog and Portfolio Posts show blank pages with '0001"top left cornerHello criss23
Please check your category.php may be there is a die having message 0001 or only 0001 written in the page.Forum: Fixing WordPress
In reply to: different title on a single pageTry this code , that might help you.
if( isset( $_GET[‘’page_id]) && $_GET[‘’page_id] == “594” ) { /*your title for blog page*/ } else { /*your title for rest of the page*/ }If this work for you, try this concept with page slug or page title, as page id is not a very reliable solution, in case you assign different page to blog.
ThanksForum: Fixing WordPress
In reply to: Add Random Post to Bottom of Home PageHie mjbcomputers,
Try this code where u need to get one random post:$query = new WP_Query( array ( 'post_type' => 'post', 'orderby' => 'rand', 'posts_per_page' => '1' ) ); if($query->have_posts()) { while($query->have_posts()) { $query->the_post(); the_title(); /*more things you want to show about post*/ } }Hope that will solve your purpose.
Forum: Fixing WordPress
In reply to: Help With Sidebar MenuHello clevis35
It seems that you are not using the default wordpress recent posts widget because there is same link on every post link which is “http://www.sierraimageblog.com/nature%20photography,%20landscapes/” so if you are using custom widget or it is written in sidebar.php then please check for “href” attribute and provide there appropriate value.Forum: Fixing WordPress
In reply to: How disable authentication bar for users?Hi myt007,
It seems you’re asking about to hide the admin bar appears at the top when user is logged in.
If this is something you want, then add the following code in your theme’s functions.php file<?php // Checks if currently logged-in user is not admin if ( ! current_user_can( 'manage_options' ) ) { show_admin_bar( false ); } ?>The above code is for when users are logged in except admin, then admin bar will not be shown them.
But if you want to hide the admin bar for all including admin, then just need to add the following code:<?php show_admin_bar( false ); ?>Hope this will help you.
Forum: Fixing WordPress
In reply to: Archive questionHello LearningDesigner
If you properly follow the wordpress theme structure in your theme and make library,cleaning,beauty,travel as your categories and assign them to posts then it will automatically work as you wantForum: Fixing WordPress
In reply to: PHPMailerThe issue seems to be in line:
$user_msg = ancora_strshort($post_data['message'], ancora_get_theme_option('message_maxlength_contacts'));Try replacing the line by :
$user_msg = sanitize_text_field($post_data['message’]);
Or :
$user_msg = utf8_decode(sanitize_text_field($post_data['message’]));
If issue still persist please send the code of function ancora_strshort()Thanks
Forum: Fixing WordPress
In reply to: Use slug rather than id for $post->post_parent?Try replacing your code with:
global $post; $post_parent = get_post($post->post_parent); elseif ( is_page('notes') || 'parent-slug' == $post_parent->post_name || is_singular('post')) { $title['title'] = 'Notes: ' . $title['title'];}Forum: Fixing WordPress
In reply to: PHPMailerHi kordas88,
Check your phpMailer code and find the line where object of phpMailer is being created.Now try this piece of code :$mail = new PHPMailer(); $mail->CharSet = "UTF-8"; $mail->Encoding = "16bit";Hope this will fix your problem.
ThanksForum: Plugins
In reply to: [Advance Waitlist] Translations?Okay violetacosmeticosbr 🙂
Forum: Fixing WordPress
In reply to: Use slug rather than id for $post->post_parent?hello gulliver,
to use parent slug rather than the parent id in a condition, you can get parent slug by following
$post_parent = get_post($post->post_parent);
use the condition like this-
if($post_parent->post_name == "slug") {}Hope this will solve your purpose.
ThanksForum: Fixing WordPress
In reply to: force from https://www to httpsHello johnc1979,
Please try the following code in your .htaccess file and remove your code:
RewriteEngine On # Check that you're on port 443 and the hostname starts with www RewriteCond %{SERVER_PORT} ^443 RewriteCond %{HTTP_HOST} ^www\. # Redirect to domain without the www RewriteRule (.*) https://yoursite.com$1 [L,R,QSA]Forum: Reviews
In reply to: [WP Social Media Login] Crashed Site – WP Social Media Login PluginHello George,
we have replied on support https://wordpress.org/support/topic/crashed-site-wp-social-media-login-plugin?replies=4#post-8530595, please do check
Thanks