WordPress Address (URL) Reverts back

You should check your .htaccess file at the root of your domain. To remove www. you could add something like this: RewriteEngine On RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] Alternatively, it could be a setting from your web host’s panel. For example, DreamHost has the option to add or remove “www.” from urls … Read more

WordPress URL question

These are your user information, this tutorial can be helpful for you to change/update author slug. There is no Author Template on your theme, have to create author template, https://codex.wordpress.org/Author_Templates this will be helpful for you.

Post URL duplication adds numerical value

Posts have a slug (that’s the last part of the URL), and it must be distinct, even if posts are in different categories. If your only worry is SEO, don’t worry. Google sees the URLs as distinct, and Google is used to dealing with URLs that have a suffix on them, and has no problems … Read more

How to remove Base URL Duplication?

I just examined your URL http://www.homecredit.ph/wp-content/uploads/home1/homecre1/public_html/files/News-26.jpg and code and noticed that, you are saving your image in http://www.homecredit.ph/files/News-26.jpg path but trying to access from upload directory of WordPress. /home1/homecre1/public_html/files/News-26.jpg – this is the path stored in database for your attachment ID. /home1/homecre1/public_html/ – This is your root directory where WordPress installed. So better save only … Read more

List sub pages with custom field content converting image ID to URL

I ended up with this <?php //get children of page 241 and display with custom fields $args=array( ‘post_parent’ => 825, ‘post_type’ => ‘page’, ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php $img = wp_get_attachment_image_src( get_post_meta($post->ID, ‘product_logo’, true)); ?> <?php $alt_text_for_logo = get_post_meta($post->ID, ‘alt_text_for_logo’, true); ?> … Read more