External Links Not Working [closed]

This question is really too localized to get a solid answer and will most likely get closed. Here’s a quick guide to narrow down what the issue is – but the fact that I can click the links just fine and you can’t makes it sound like an issue with your system and not necessarily … Read more

WordPress: How to make a subsubdirectory

If I’m understanding your question correctly, as long as you’re okay with them all using the same theme (it gets much more complicated if you want them to look different), but you should be able to export the posts from the other two blogs and import them into the one you’re keeping. Then create a … Read more

pictures does not apeare in posts

The correct .htaccess for a multi-site setup looks like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule . index.php [L] Note the rule for files: That’s how WordPress locates your images. You need also a … Read more

What is the right way to code links for WordPress pages?

For general links use home_url(). <a href=”https://wordpress.stackexchange.com/questions/55146/<?php echo esc_url( home_url(“/path/to/link’ ) );?>”>Anchor</a> To link to theme assets like images etc use get_stylesheet_directory_uri(). <img src=”https://wordpress.stackexchange.com/questions/55146/<?php echo get_stylesheet_directory_uri(); ?>/images/your_image.png” /> You could just as easily use relative links for navigation but I would stick with home_url() for consistency.

permalink and $_GET

Is the reason you are adding the post_id to the URL because you are you trying to access the post_id variable in the template? You can do so much more easily by accessing it in the Loop of your template file <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); // Two … Read more

How to Link to WP Pages Internally and Extenally

Use this to output correct link: <?php $page = get_page_by_title( ‘Store’ ); echo get_permalink( $page ); ?> Or if you know ID of your page (you can get ID from administration), you can use just (if ID is 2) <?php echo get_permalink( 2 ); ?> You can read more about get_permalink function here And I … Read more