WordPress Customise

The interstitial page on that website isn’t part of WordPress. It’s just an external page with some ads and a download link on it. You can easily do this by yourself. Create a php file named download.php on your server and add the following code to it: <html> <head> <meta http-equiv=”refresh” content=”5; url=<?php $_GET[‘url’];?>” /></head> … Read more

After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?

Depending on if permalinks worked on your local server before the import or not you ether need to update the .htaccess in your wordpress root, or you need to enable rewrites all together in Apache. What operation system do you use? This is a good guide if you use linus: https://www.digitalocean.com/community/articles/how-to-set-up-mod_rewrite

Unsual behaviour of navigation Menus

Problem was the theme that we purchase didn’t upload the plugins and other Java Script files properly So it was giving an error. Going through theme installation document helped me.

PHP Button Custom link [closed]

I’m not sure what byt_render_link_button() does, but I try this. <?php byt_render_field(“description clearfix”, “”, “”, $accommodation_description_html, ”, false, true); if (!empty($current_url) && $current_url == $list_user_accommodations_url) { byt_render_link_button($submit_accommodations_url . ‘?fesid=’ . $accommodation_id, “gradient-button clearfix”, “”, __(‘Edit’, ‘bookyourtravel’)); } else { byt_render_link_button( ‘http://www.mywebsite.com’, “gradient-button clearfix”, “”, __(‘Book now’, ‘bookyourtravel’) ); }

How to make temporary expiring link for a downloadable file

Option 1: You can achieve this using htaccess if you have single download file/path. But if you have more files available for download. Creating a temporary file for each download requests and using htaccess is not a good idea. $path=”uploads/”; $actualfilename=$path.$filename; $fakefilename=”downloadfile.pdf”; if($typeofview==”download”) { @readfile($actualfilename); header(‘Content-type: application/pdf’); header(‘Content-Disposition: attachment; filename=”‘ . $fakefilename . ‘”‘); header(‘Content-Transfer-Encoding: … Read more

ACF link withing website is good, but not external link?

That will happen if the link doesn’t include http:// in it. For example, if the user has entered just linkedin.com into the field. In that case <a href=”https://wordpress.stackexchange.com/questions/284064/linkedin.com”> will be treated as a relative link by the browser. Use esc_url on output to ensure a full valid URL with protocol is output: <?php echo esc_url( … Read more

Trying to chance my link style

This is done with CSS. You must use “border-bottom” property instead of “text-decoration: underline;” so you can have more flexibility with the line. a { text-decoration: none; /* remove the default underline; */ border-bottom: 1px solid blue; /* Set the border width and color. */ padding-bottom: 3px; /* Set the distance between the word and … Read more

WordPress MultiSite Link Cloaking/Redirect Solution?

I just checked if my WP Traffic Tools (http://www.wptraffictools.com) does this, and it does not. I thought about changing to the way you wanted, but the potential to bring unwanted overhead onto sub-blogs that do not share common links causes me to stop. But… if you were to edit the file /wp-traffic-tools/wp-cloakme.php, replacing the following: … Read more

PHP code for link with text

maybe try with php DOMDocument rather than regex. I don’t think all DOMDocument methods will work with just an html fragment and not a complete document, but for your needs it may be enough: <?php $dom= new DOMDocument(); $html=”<p>Some html with a <a href=”http://foo.com/”>link</a>. Some more text and <a href=”http://bar.com/”>another</a> link.</p>”; $dom->loadHTML( $html ); $dom->preserveWhiteSpace … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)