CoolArts
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moving installation folderBut beware, because you may have data from plugins, and db variables, and they may be url’s that need to be changed too. The quickest & safest way is the one i told you.
Forum: Fixing WordPress
In reply to: Moving installation folderI think the quickest and safest way to do that, is to backup your db into a sql file (with phpmyadmin, MySql Workbench or whatever you use).
Make a backup of the file.
Then, open the file with a text editor and make a search & replace for the string “blissoncrown.net.au/dev/” to “blissoncrown.net.au/”, and after that you only need to restore the db with the modified file.
Be aware of the text codification.
Forum: Hacks
In reply to: Creating new metadata for attachments ?An attachment is a post so you can save a post meta for each image
To setup you just need:
update_post_meta( $post->ID, Name_of_the_variable, Value_of_the_variable )
And to retrieve it:
get_post_meta( $post->ID, Name_of_the_variable )
For example:
update_post_meta( $post->ID, 'my_custom_parameter', 'my_parameter_value' )
Whish it helps.
Forum: Reviews
In reply to: [XML Sitemap Generator for Google] Works greatI used to hard-code all my plug-ins, just only for this time and for save up a bit of time i used this plugin.
?BEWARE! if your domain is a subdomain, because it can make you cry if you search on google after using this plug-in if you marked the option to send to searchEngines.
My domain is https://www.ruralyt.com, but it is a subdomain of rural-store.com
I never used ruralyt.rural-store.com to acces the web, but this plugin told to google and bing that that’s the real url, so after using the plugin and searched google only returns ruralyt.rural-store.com no https://www.ruralyt.com and i has to make a big research, to restore it to the correct domain.
But for the other things this plug-in works GREAT!!!!!
Forum: Fixing WordPress
In reply to: Display recent posts and pages in one queryThen will be better to create a complete new sql sentence who look for data related in 3 tables
-> “posts”
-> “term_taxonomy”
-> “term_relationships”Instead of using 2 loops
To short arrays by date, you must convert its post_date to seconds, and make a custom short function to reorder de object/array
Forum: Fixing WordPress
In reply to: Display recent posts and pages in one query//First you save default query in a variable $temp_query = $wp_query; //Now you prepare your custom query query_posts(array( 'post_type' => array('post', 'page'), 'posts_per_page' => 10, 'order_by' => 'post_date' )); //Then you can call the loop while (have_posts()) : the_post(); //And use the $post variable var_dump($post); endwhile; //And you restore default loop $wp_query = $temp_query;
Wish it helps
Forum: Fixing WordPress
In reply to: How to access my website?Cheers!!
Forum: Fixing WordPress
In reply to: How to access my website?Then enter the Db and change the value ‘siteurl’ from https://testwp.deskform.nl to https://testwp.deskform.nl/testwp
Forum: Fixing WordPress
In reply to: WordPress doesn't post/publish any pagesThe page is there:
https://imarketize.co.uk/about-usSo or you have errors on your template file, or your’e just not echoing the page in your template.
Forum: Fixing WordPress
In reply to: How to access my website?Use this url to log-in
https://testwp.deskform.nl/testwp/wp-login.phpOnce you access, ensure your urls have the folder testwp
Like
https://testwp.deskform.nl/testwp/wp-admin……..
Not
https://testwp.deskform.nl/wp-adminTry to change the url again from the backoffice
If you can’t, you may enter to the db via phpmyadmin or whatever you use, and in the options table look for the option ‘siteurl’ and update it to the correct path. Maybe you need to regen your .htaccess file from the backoffice again.
Forum: Fixing WordPress
In reply to: How to completely remove author/username URL?To remove it from google results, you may enter to google webmaster tools, follow the steps to certify that you are the owner of ‘https://website.com/news/author/username’, once your donde with that step do what u see on this image:
IMAGEAlso you can prevent access to that page via the .htaccess file
RewriteEngine On RewriteBase / Redirect /news/author/username "NEW URL TO REDIRECT"
Forum: Hacks
In reply to: How to call categories of custom post types?You can use the terms to archieve that.
get_the_term_list
wp_get_object_terms
get_the_terms
get_terms