madebymt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Link to custom post typeHi @joyously
Thank you for responding. but I just trying to get the link from custom post type, is any I can just pull think link by template?
I’m don’t need to loop through the custom post type. I just need when I in the child page and back to the parent page.
Example:
Custom post type page name: Design
Custom post type child page: design1, design2, design3 ( I tried to create a button. so they go back to the “Design/parent”) page.Thank you so much!
Forum: Fixing WordPress
In reply to: upgrades caused site to totally change!It happened to me once, upgrade the theme, all the navigation style change. so I grab the older version styles.css (backup) put in the new site, change the stylesheet top template version match the newest one.
Hope that helps.
Forum: Fixing WordPress
In reply to: Old pages still on and no Landing page on other devicesHi
Can you provide the site URL?
Also when you see the change on the desktop, are you login in that browser?
Please check in the private/incognito mode to check are those change made?
If not you might need to check your WP cache issue, do you have like cache plugin install on the site?Forum: Fixing WordPress
In reply to: Different URLs directing to different variations of my website?Hi
Please check your setting general setting URL, does it have https:// or https://
here’s the tutorial for setting up SSL:https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/And Here’s a simple SSL plugin can force your site to https:// and fixed all the mix content on the site:
https://www.ads-software.com/plugins/really-simple-ssl/Let me know if you have more questions
Forum: Fixing WordPress
In reply to: Reverse wordpress SQL CASE ExpressionThank you so much for your help, seriously!
I put your function before the DB search filter, works perfectly.Thank you so much taking your time answering my questions.
Forum: Fixing WordPress
In reply to: Reverse wordpress SQL CASE ExpressionIf anyone has any ideas, please help! Thank you all.
Forum: Fixing WordPress
In reply to: Reverse wordpress SQL CASE ExpressionThank you so much for answer my question and be so patient with me.
Is possible make your function to make search result show page first then post? That because I’m use SQL CASE expression.Thank you again.
Forum: Fixing WordPress
In reply to: Reverse wordpress SQL CASE ExpressionHi @prashantvatsh
I tried to put the code in the function, got the post id form the backend, but it’s still not working.
Did I miss something?$wp_query->set( 'post__not_in', array( '20') );
Thank you so much!
Forum: Fixing WordPress
In reply to: Reverse wordpress SQL CASE ExpressionTried to add this after if statement, but it’s not working
Thanks!
add_filter( 'posts_orderby', 'order_search_by_posttype', 10, 2 ); function order_search_by_posttype( $orderby, $wp_query ){ if( ! $wp_query->is_admin && $wp_query->is_search ) : $wp_query->set( 'post__not_in', array( pade_id ) ); global $wpdb; $orderby = " CASE WHEN {$wpdb->prefix}posts.post_type = 'page' THEN '1' WHEN {$wpdb->prefix}posts.post_type = 'post' THEN '2' ELSE {$wpdb->prefix}posts.post_type END ASC, {$wpdb->prefix}posts.post_title ASC"; endif; return $orderby; }
Thanks!
Forum: Fixing WordPress
In reply to: Reverse wordpress SQL CASE ExpressionThank you so much for answers my question.
Is possible add that function in the WordPress SQL CASE Expression function I had?
I not quite sure how I add it in.Thanks!
- This reply was modified 6 years, 2 months ago by madebymt.
Forum: Fixing WordPress
In reply to: can find created websiteDo you have FTP access for the site? If so you can check on your .hatccess to see if you set up a redirect for wp-login.php
I remember some of the security plugin able to change your wp-login.php link, try to deactivate it to see you can get back in.Forum: Fixing WordPress
In reply to: No Bullet Points On Published PostWhat you want the bullet point looks like? For all the page or only that page? Thanks!
Forum: Fixing WordPress
In reply to: Content disappear when I turn WordPress debug off@safeerz Sorry about the late response. I find out one of my code in function cause the issue.
It’s the function to remove empty <p> tag default in WordPress, after I took it out, then it works.Forum: Fixing WordPress
In reply to: search result page first then postThank you so much for responding to my question, I tried adding a custom query for it. like
$args=(array(
‘post-type’=>’page’,
‘order-by’=>’title’
))
in the search page, but it’s not working.Forum: Fixing WordPress
In reply to: Stuck – won’t show as httpsHi
Can you check on your chrome console, and post here if you see any error.
If you have mix content (http and https mix together) then it won’t show all the way green secure icon.Simple SSL there’s a bar you can’t click “force SSL”
Let me know if you have more questions.
Thanks