Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Another reason this might happens, if you are using IIS (Internet Information Services) for Windows Servers, by default, directories under \inetpub\wwwroot are not allowed to be modified through the browser. To fix the problem you only need to add permission for IIS_IUSRS user to the WordPress Directory.

    IMPORTANT
    Do not apply permission to the \inextpub\wwwroot, that’s a very bad idea. Also, you can add permission only to you content only.

    I would only apply Read & execute, List folder contents, Read, Write. If that do not work, apply Full Control, only if previous selections do not work.

    Thread Starter raphievila

    (@raphievila)

    Sorry, I forgot to thank everyone for your help… All solutions worked out good.

    But the main reason for my problem was that the wp-config.php had a space before the php tags. I removed them and voilá, problem solved.

    Then later on I had another issue with the same problem, I did removed the space before the php tags but didn’t work. So I follow all you guys instructions and… what can I say?

    Thanks

    For those who are intereste in a function for your function.php page this is the code you need:

    <?php 
    
    function contentListTable($categoryName,$colQty){
    
        if (isset($colQty) && ($colQty > 1 || $colQty != '')):
            $colSpan = 'colspan='.$colQty;
        else:
            $colSpan = '';
        endif;
    ?>
    
    <div id="tableContent" class="post_details">
        <table class="bookmarks-table" cellpadding="0" cellspacing="0" border="0">
            <th <?php echo $colSpan; ?>>
                <h4>List for <?php echo $categoryName; ?></h4>
            </th>
                <?php
    
                query_posts('category_name='.$categoryName);// use your post category id or name here
                /*
                 * showpost = to limit the quantity of post in the list ex. query_posts('category_name=Name&showpost=10')
                 * category = to enter category id
                 * category_name = to specify which post to be display
                 */
                $i 	= 0;
                $cols 	= $colQty;
                echo '<tr>';
                if(have_posts()): while (have_posts()) : the_post();
                        $i++;
                        ?>
                        <td class="archive-title" width="50%" valign="top"><div class="eachLink"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Enlace para <?php the_title(); ?>" ><?php the_title(); ?></a></div></td>
                        <?php
                        if ( ( $i % $cols ) == 0 ) {
                                echo '</tr>' . "\n";
                                echo '<tr>';
                        }
                endwhile;
    
                else:
                    echo '<tr><td <?php echo $colSpan; ?>>There are no list for '.$categoryName.'!</td>';
                endif;
                echo '</tr>';
                ?>
        </table>
    </div>
    <?php } ?>

    This is for a table of content, for each post you might need to use this function repeatedly.

    Standard Use: (with this I mean what you should put in your sidebar or any page template).

    <?php contentListTable([Your Post Category],[Number of Columns]); ?>

    Remember that in php you don’t quote string values in a function example of use with a posts under Events category name.

    <?php contentListTable(Events,1); ?>

    This is querying for post in the Category ‘Events’ with a table of just 1 column.

    Happy designing!

    I think I solved your problem with the following code:

    Wow, awesome code… I used it for a wordpress blog I’m working on with a tweak to use it with posts instead of bookmarks this is the code:

    <table class="bookmarks-table" cellpadding="0" cellspacing="0" border="0">
                <th colspan="2">
                    <h4>Lista De Eventos</h4>
                </th>
                    <?php
    
                    query_posts('category_name=Eventos');// use your post category id or name here
                    /*
                     * showpost = to limit the quantity of post in the list ex. query_posts('category_name=Name&showpost=10')
                     * category = to enter category id
                     * category_name = to specify which post to be display
                     */
                    $i 	= 0;
                    $cols 	= 2;
                    echo '<tr>';
                    if(have_posts()): while (have_posts()) : the_post();
                            $i++;
                            ?>
                            <td class="archive-title" width="50%" valign="top"><div class="eachLink"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Enlace para <?php the_title(); ?>" ><?php the_title(); ?></a></div></td>
                            <?php
                            if ( ( $i % $cols ) == 0 ) {
                                    echo '</tr>' . "\n";
                                    echo '<tr>';
                            }
                    endwhile;
    
                    else:
                        echo '<tr><td colspan="2">No hay Eventos enlistados a&uacute;n!</td>';
                    endif;
                    echo '</tr>';
                    ?>
            </table>

    Thanks for the inspiration… Blessings

    Hope this will help anyone.

Viewing 4 replies - 1 through 4 (of 4 total)