Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Christopher411 on "Admin form entry not showing on page"

$
0
0

I am a bit of a novice so bear with me.

I have an admin form for product lines and the entries on those forms show up together on a product page.

<div class="product_page_entry<?php if ($odd){ echo ' odd_product';}?>">
        <?php preg_match('/(<img[^>]*\/>).*(<a.*<img[^>]*\/><\/a>).*(<ul.*<\/ul>).*(<ul.*<\/ul>)/s', $content, $matches); ?>
        <div class="product_page_imgs">
            <?php
                $matches[1] = preg_replace('/-\d+x\d+\./', '.', $matches[1]);
                $matches[1] = preg_replace('/img/', 'img width="60" height="60"', $matches[1]);
                echo $matches[1];
                $matches[2] = preg_replace('/-\d+x\d+\./', '.', $matches[2]);
                $matches[2] = preg_replace('/img/', 'img width="200" height="60"', $matches[2]);
                echo $matches[2];
            ?>
        </div>
        <div style="width: 274px" class="product_page_ul">
            <?php echo $matches[3]; ?>
        </div>
        <div class="product_page_ul">
            <?php echo $matches[4]; ?>
        </div>
    </div>

The code takes the image and places it in column 1, the first ul and puts it in column2 and the second ul and puts it in column 3

How do I edit it to but the raw text I enter into the form below the images in the first column?


Viewing all articles
Browse latest Browse all 8245

Trending Articles