juanfry
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Hello,
Perfect, working smoothly with this new version.
Thanks!
Forum: Fixing WordPress
In reply to: Embed ad into the loop in a category archive pageHello,
Yes, you are right. I will use an extract of the twentyseventeen archive.php file as guidance template:
<?php // Init counter $i = 1; /* Start the Loop */ while ( have_posts() ) : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'template-parts/post/content', get_post_format() ); if ($i === 3){ // You can include a root file with the ad code here. Remember it has to echo the code. get_template_part( 'ad' ); } // Increase counter $i++; endwhile;Kind regards,
Juanfran Granados
Forum: Networking WordPress
In reply to: Multisite New Site Redirects to Main + 404 errorHello Kristen,
It’s a bit to difficult to help you without having the configuration files (.htaccess, wp-config.php, apache), but it can be a problem with Apache rewrite module configuration.
You could start checking if mod_rewrite is enabled. Then another clue could be your apache config, check if you have something similar to:
<Directory /var/www/html> Options FollowSymLinks AllowOverride All </Directory>We can talk from there.
Kind regards,
Juanfran Granados
Viewing 3 replies - 1 through 3 (of 3 total)