My website’s wp-admin redirects to another website’s wp-admin after pointing the site url to a subdirectiory

I’m still having trouble following your question. You say you’re familiar with giving WP it’s own directory, but I think you may be confusing installing a second WordPress install in a separate sub-directory with giving WordPress it’s own sub-directory. Possible file structures: Single site: /index.php (and all the rest of wordpress installed at root) Multiple … Read more

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.

Link to page in category

After a long search on the Web, I decided to take a look at the plugins @anjum sent, and found out this can be done through: <a href=”https://wordpress.stackexchange.com/questions/110906/<?php get_pagenum_link($i); ?>”>Link to page $i</a>

Directing to functions.php the correct way

If you ‘have’ to do it this way, you should add the following line to the top of your above your include functions line: require(‘/path/to/yourdomain.com/httpdocs/wp-blog-header.php’); global $wpdb; // In case you need DB calls also @milo is correct though and you should think of a better way of doing this… Alternatively, you could look at … Read more

SSL not working for checkout

When you force https in woocommerce it doesn’t always stick, try running this plugin. It worked for me with solving https problems in WordPress and WooCommerce. Also try Better WP Security which has security hardening for your WordPress site offers the option to force SSL on certain pages, or whole site. I also highly recommend … Read more

Get Products within Current Product Category

You said you are able to get current product category name, store it in $current_product_category variable now try this code .. <ul class=”products”> <?php $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 1, ‘product_cat’ => $current_product_category, ‘orderby’ => ‘rand’ ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> … Read more