kriskrukkert
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Previous page IDShould I use $_SESSION ???
Forum: Fixing WordPress
In reply to: Previous page IDWhen on a single page and you come from a category page its seems impossible to get the ID of the category page you came from. Its possible to get all the categories of a page but not the ID of the category page you just came from.
Forum: Fixing WordPress
In reply to: Pagination is not working properly with tagsHey Ho! figured it out! I don’t know if its the best solution but it works.
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $the_tag = single_tag_title("", false); $args = array( 'posts_per_page' => 5, 'post_status' => 'publish', 'suppress_filters' => true, 'tag' => $the_tag, 'paged' => $paged ); query_posts( $args ); while ( have_posts() ) : the_post();Forum: Installing WordPress
In reply to: WordPress automatically redirects to subdirectoryThe page that is not working is the shopping cart. So I’m now digging in the Woocommerce plugin to see what is going wrong.
If I knew it would be such a hassle putting it in a sub-directory I also would have chosen the domain prefix option.
My client has hosting with only one DB. Thats why I had to use different table preflixes.
Thanks for the help!
Forum: Installing WordPress
In reply to: WordPress automatically redirects to subdirectoryI have changed the .htaccess by adding test to the last RewriteRule. This now works for all but one page. Now I’m trying to figure out why this is.
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . test/index.php [L] </IfModule> # END WordPressForum: Installing WordPress
In reply to: WordPress automatically redirects to subdirectoryYes, I have complete sets of WordPress files, one in public_html and another in public_htm/test.
They share a database, but have there own database preflix which are defined in config.php
I checked your solution. The root WordPress now works. Only when I go to the subdirectory WordPress, only the index works. The other pages redirect to the root WordPress.