Blog post Links leading to home page [closed]

Delete you .htaccess file in root Reset your permalink structure If have access to the theme file make sure your blog title link refers to the_permalink() as destination. you might have open anchor tag from the logo which developer forgot to close.See page source or inspect it. Share the code in your loop.

Return raw image proxy for wordpress plugin

I circumvented the issue with the following hack of images.php. <?php // Import wordpress API. require_once(‘../../../wp-load.php’); function hinews_get_image($id) { if (array_key_exists(‘mimetype’, $_GET)) { $mimetype = $_GET[‘mimetype’]; } else { return ‘No MIME type specified.’; } $options = get_option(‘homeinfo_news_options’); $parm_token = ‘?access_token=’ . $options[‘token’]; $base_url=”https://myurl.com/”; $image_url = $base_url . $id . $parm_token; $image = file_get_contents($image_url); if … Read more

Change WordPress names duplicate titles (url)

For details please see this answer : Remove Dash/Hyphen From WordPress CustomPosttype Permalink In your functions.php : function no_dashes($title) { return str_replace(‘-‘, ”, $title); } add_filter(‘sanitize_title’, ‘no_dashes’ , 9999); For particular type of post : function no_dashes( $slug, $post_ID, $post_status, $post_type ) { if( $post_type == “page” ) { $slug = str_replace( ‘-‘, ”, $slug); … Read more

i1.wp.com url problem (Jetpack not installed)

I found the answer to your question. I’ve created a simple avatar plugin. (I edited and developed the code) if ( !function_exists( ‘get_avatar’ ) ) : function get_avatar( $id_or_email, $size=”0″, $default=””, $alt = false ) { if ( ! get_option(‘show_avatars’) ) return false; static $default_url; if ( !isset( $default_url ) ) $default_url=”http://example.com/image/my-image.png” ; if ( … Read more

Redirect only PDFs in different folders?

If all of the .pdf pages need to redirect to the same page, and provided you don’t have any .pdf pages that don’t need redirecting, you might be able to use something like the following in your .htaccess file… RewriteCond %{REQUEST_URI} .*\.(pdf) RewriteRule ^(.*)/ https://new.example.com/new_page/ [R]

WordPress drop domain alias

If you are NOT using WordPress MultiSite add the following in wp-config.php. define( ‘WP_HOME’, ‘http://klenotnictvi-benesov.cz’ ); define( ‘WP_SITEURL’, ‘http://klenotnictvi-benesov.cz’ ); If you ARE using WordPress MultiSite you will need to access the database directly and edit the wp_options table and change “siteurl” & “home” to the correct url. Here is more info on changing the … Read more