Forum Replies Created

Viewing 15 replies - 46 through 60 (of 165 total)
  • Thread Starter chaplaindoug

    (@chaplaindoug)

    SOLUTION FOUND. BUT WHY???

    I went to another multisite network I created that has been working fine. I simply copied the web.config file from that working site into my non-working site. The site on which I was having problems now works.

    The web.config I copied in has seven (7) rules instead of the six (6) rules contained in the web.config that did not work. The non-working web.config was created using the text given in the Network Setup page.

    Below is the WORKING web.config, followed by the NON_Working web.config. It appears that the additional rule (Rule 2 in the working version) is the one that made the difference. Anyone know why it fixed it?

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="WordPress Rule 1" stopProcessing="true">
                        <match url="^index\.php$" ignoreCase="false" />
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 2" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" />
                        <action type="Rewrite" url="wp-includes/ms-files.php?file={R:2}" appendQueryString="false" />
                    </rule>
                    <rule name="WordPress Rule 3" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="{R:1}wp-admin/" redirectType="Permanent" />
                    </rule>
                    <rule name="WordPress Rule 4" stopProcessing="true">
                        <match url="^" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAny">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                        </conditions>
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 5" stopProcessing="true">
                        <match url="(^[_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>
                    <rule name="WordPress Rule 6" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>
                    <rule name="WordPress Rule 7" stopProcessing="true">
                        <match url="." ignoreCase="false" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>

    THE NON-Working version:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="WordPress Rule 1" stopProcessing="true">
                        <match url="^index\.php$" ignoreCase="false" />
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 2" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
                        <action type="Redirect" url="{R:1}wp-admin/" redirectType="Permanent" />
                    </rule>
                    <rule name="WordPress Rule 3" stopProcessing="true">
                        <match url="^" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAny">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                        </conditions>
                        <action type="None" />
                    </rule>
                    <rule name="WordPress Rule 4" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                        <action type="Rewrite" url="{R:1}" />
                    </rule>
                    <rule name="WordPress Rule 5" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>
                    <rule name="WordPress Rule 6" stopProcessing="true">
                        <match url="." ignoreCase="false" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
    Thread Starter chaplaindoug

    (@chaplaindoug)

    esmi: I cannot run such a test, as this is an extensive web site, online, using another theme, etc. It would be too disruptive.

    However, it is notable that I do not have the same issue when logging into another one of my sites that uses a different theme. The one having the problem uses PureVision.

    Thread Starter chaplaindoug

    (@chaplaindoug)

    Gotcha. I have WordPress sites that I host (most of them) and sites that WordPress hosts (my personal). I just got mixed up. Thanks.

    Thread Starter chaplaindoug

    (@chaplaindoug)

    Yeppirs. It is only on my xxx.wordpress.com free site (hosted by WordPress) that I have the issue. I guess I have to purchase an upgrade to have this capability on the “free” site?

    Thread Starter chaplaindoug

    (@chaplaindoug)

    SOLUTION. DO NOT BOTHER WITH WP-SMTP.

    I was able to make the plugin, “Configure SMTP” work network wide. I went to the file configure-smtp.php in the plugin’s folder and entered the information for my Exchange Server (username, password, smtp port, etc.) in the section found under:

    * Initializes the plugin’s configuration and localizable text variables.

    That made my specific settings for default for each network site. it works!

    Thread Starter chaplaindoug

    (@chaplaindoug)

    SOLUTION.

    I was able to make the plugin, “Configure SMTP” work network wide. I went to the file configure-smtp.php in the plugin’s folder and entered the information for my Exchange Server (username, password, smtp port, etc.) in the section found under:

    * Initializes the plugin’s configuration and localizable text variables.

    That made my specific settings for default for each network site. it works!

    Thread Starter chaplaindoug

    (@chaplaindoug)

    Thread Starter chaplaindoug

    (@chaplaindoug)

    Gary:

    I found a solution to the issue by making my own template. See my solution at:

    https://www.ads-software.com/support/topic/how-to-display-just-one-post-on-a-page-of-posts?replies=7

    Thread Starter chaplaindoug

    (@chaplaindoug)

    I found an article that gave the fix for the problem noted above.

    https://www.sunnybalanga.com/2011/07/07/wordpress-query_posts-page-navigation-problem-fixed-solved/

    I had the line indicated. But it had “paged” instead of “page.” With that correction the “Older Posts” link works.

    My modified template files is as follows:

    <?php
    /**
     * Template Name: Page of Posts
     *
     * for a child theme of Twenty_Twelve
     */
    
    get_header(); ?>
    
    	<div id="primary" class="site-content">
    		<div id="content" role="main">
    
    		<?php
    			$paged = (get_query_var('page')) ? get_query_var('page') : 1;
    			$args= array(
    				'category_name' => 'news', // Change this category SLUG to suit your use; or see for query parameters https://codex.www.ads-software.com/Class_Reference/WP_Query#Parameters
    				'paged' => $paged,
                         'posts_per_page' => '1');
    			query_posts($args);
    			if( have_posts() ) :?>
    
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', get_post_format() ); ?>
    				<?php comments_template( '', true ); ?>
    			<?php endwhile; // end of the loop. ?>
    
    			<?php twentytwelve_content_nav( 'nav-below' ); ?>
    
    			<?php else : ?>
    			<article id="post-0" class="post no-results not-found">
    				<header class="entry-header">
    					<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
    				</header>
    				<div class="entry-content">
    					<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>
    					<?php get_search_form(); ?>
    				</div><!-- .entry-content -->
    			</article><!-- #post-0 -->
    
    			<?php endif; wp_reset_query(); ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thread Starter chaplaindoug

    (@chaplaindoug)

    This worked:

    ‘posts_per_page’ => ‘1’

    However, I then discovered that the “Older Posts” link that shows at bottom of page although linked to a different URL, simply displays the same one post again. This was a problem I thought was due to a plugin (Posts-In-Page), which led me to try the template approach. I now see that it is a problem with the query_posts function.

    Thread Starter chaplaindoug

    (@chaplaindoug)

    Thanks Adity. But the addition of that parameter (argument) made no difference. The page still displays all the posts. Any other ideas?

    By the way, the parenthesis is there, just on the next line.

    Thread Starter chaplaindoug

    (@chaplaindoug)

    Gary:

    Thank you for taking the time to reply. Unfortunately, I need to have multiple pages that behave as I describe. Hence, the “Home Page” and “Posts Page” will not provide a full solution.

    Thread Starter chaplaindoug

    (@chaplaindoug)

    That article is about showing posts from a single category. My template already does that. I desire to show ONE POST only on the page.

    Thread Starter chaplaindoug

    (@chaplaindoug)

    Atarian:

    Try the Posts to Page plugin https://studio.bloafer.com/wordpress-plugins/posts-to-page/

    [posts-to-page category=”news” limit=1 show_date=false show_author=false]

    Thread Starter chaplaindoug

    (@chaplaindoug)

    “Are there any similar plugins that offer this functionality?”

    I have asked the same question elsewhere without reply. Kinda lonely out here . . .

Viewing 15 replies - 46 through 60 (of 165 total)