Current WordPress Page Title as Search Parameter into A Tag

Your shortcode is getting the title, but you haven’t told it to return anything, so a small tweak should fix things: <?php function post_title_shortcode(){ return get_the_title(); } add_shortcode(‘post_title’,’post_title_shortcode’); ?> You could also continue setting get_the_title() to $variable and add a line to return $variable, but the above is the simplest, shortest option.

what does the symbol “?” mean and how can i edit that page?

? means the start of the variables that are accessable via PHP on the page called. The page https://www.testsite.com/ will be called, and booking variable will be accessible globally throughout the PHP script. In this case, the homepage script will be run. The $_GET[‘booking’] index will be set (to NULL), and will (usually) be accessible … Read more

Problems with WordPress multisite directories/url structures and admin access after migration

I don’t know how the migration was executed, but here are some things that have caught me out in the past. Files: Check the .htaccess and wp-config.php files. htaccess for a multisite should look something like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ … Read more