Site Title in my Search URL
Use <?php echo home_url( “https://wordpress.stackexchange.com/” ); ?> as the action. ‘search’ by the way is not a valid bloginfo parameter.
Use <?php echo home_url( “https://wordpress.stackexchange.com/” ); ?> as the action. ‘search’ by the way is not a valid bloginfo parameter.
Instead of using fixed php file you can use the custom wordpress templates create a custom template file and give it a name such as custom template name is step2.php and Step2 /* Template Name: Step2 */ The contents of the custom template file is similar to the content of the file on your step2.php … Read more
Hi Mark Kaplun and toscho, thank you for replying. I’ve figured out the culprit, it was caused by W3 Total Cache Plugin setting. Under Browser Cache, I have to untick this: Prevent caching of objects after settings change The weird string before every links is then removed.
Because you only have one slash instead of two in your URL: http:/eatdrink.ca That double slash ain’t just for looks. 🙂 Go to the hidden options.php page located at /wp-admin/options.php. Check and see what the “upload_url_path” is set to. Make sure it has a double slash there (if it’s empty, that is acceptable as well, … Read more
This is very simple and can be accomplished all through the admin interface. First, create pages named Home and Blog under Pages. Then go to Settings > Reading, and under Front page displays, set Front page to your Home page, and Posts page to your Blog page. Next, under Settings > Permalinks, Select Custom Structure … Read more
I took a quick peek at the other question referenced in other comments, and the gist of how you loop through attachments there meshes with what is shown in the wp_get_attachment_image documentation example. In a nutshell, any attachments on a particular post will reference that post by ID. In particular, it’s crucial to understand that … Read more
It looks like every “old” URL is a bit different from each other so you should manually create permanent redirects (HTTP 301) for each URL. I recommend using either Redirects (very simple and intuitive) or Safe Redirect Manager (more advanced features) plugins.
Problem#1: You can create a customized php file for your page using a Page Template Page Templates WordPress looks for template files in the following order: Page Template — If the page has a custom template assigned, WordPress looks for that file and, if found, uses it. page-{slug}.php — If no custom template has been … Read more
here is the full code to force change theme by a reserved wordpress parameter add_action( ‘pre_get_posts’, ‘my_pre_get_posts’ ); function my_pre_get_posts($wp_query) { global $wpdb; // Confirm request is main query if(!$wp_query->is_main_query()) { return; } // Get post name from query $post_name = $wp_query->get(‘pagename’); // Get post type from database $post_type = $wpdb->get_var( $wpdb->prepare( ‘SELECT post_type FROM … Read more
the_post_thumbnail() is highest level function for it, which will output complete HTML. If you need some lower level parts, digging deeper are nested: get_the_post_thumbnail() wp_get_attachment_image() wp_get_attachment_image_src()