Facebook like button disappears after changing the static permalink to dynamic one!

It appears that you forgot to close your PHP code correctly using ?>, try the following: <li class=”fb-like fb” data-href=”https://wordpress.stackexchange.com/questions/110669/<?php the_permalink(); ?>” data-layout=”button_count” data-show-faces=”true” data-send=”false”></li> For the future, you can easily view the source of the page and check if the_permalink was correctly inserted.

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

Siteurl code for links

I have a development site as a subdomain of my main site, so I deal with this when I copy data from the live site to the development site to obtain a current version of the development site. First, visit http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change like cybnet recommended. Once you have changed the wp-config files as described in the … Read more

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’) ); }

ugly URLs appear as 404 in GWT

There is no process of “change” to it really. Ugly URLs always work. Pretty permalinks just add a nice looking cover on top of them and internally turn the pretty version into an set of query arguments same as ugly version. Most likely it is just taking a while for Google index to catch up. … Read more