Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Does the template hierarchy define that home.php should overrule index.php any time it would be used? If so, would it be better to use the is_home() function?

    Could you explian this, how do I define the template hierachy because I am having exactly the same issue. My home.php is being used now for all posts

    PS. How have you created a mypage.php file to load from WP? I wish to create a homepage that shows latest news with a banner at the top. I edited index.php with a banner but it appears on everything. Also I tried adding php code to a WP Page post, but it just displays the php as text?

    For one:

    RewriteRule ^hello/([^/]+)$ hellousername=$1

    needs to be

    RewriteRule ^hello/([^/]+)$ username=$1

    Second, you need to add:

    RewriteEngine On

    So the solution is:

    RewriteEngine On
    RewriteRule ^hello/([^/]+)$ username=$1

    Thread Starter malpass

    (@malpass)

    Sorry, I double pasted the same code in last post. It rendered as:

    <p>If you would like bespoke software, do not hesitate to contact us. Take a look<br />
    at our Services for pricing and availability.</p>
    <div class="productentry"> <img src="https://www.angelsix.com/images/products/batchprocess.png" /></p>
    <h1>BatchProcess v1.2</h1>
    <p>THE automation tool for engineers!</p>
    <ul>
    
    <li>Save an entire assembly in any 28 native formats in 3 minutes.</li>
    <li>Print off all 100s of drawings for production in just one click.</li>
    <li>Set custom properties for every part in an assembly in one go.</li>
    <li>Update all drawing templates with new revisions without hassle.<br />
    And much more…</li>
    </ul>
    <p><a href="https://batchprocess.angelsix.com">Visit website for more details</a>
    </div>
    Thread Starter malpass

    (@malpass)

    By the way, the first examples are what is actually stored in the mySQL database AFTER posting, which I also had to fix by manually editing in phpAdmin. But even when the database is correct, the rendered output still has phantom entries.

    Here is another example:

    Original:

    If you would like bespoke software, do not hesitate to contact us. Take a look
    at our Services for pricing and availability.
    
    <div class="productentry"> <img src="https://www.angelsix.com/images/products/batchprocess.png" />
    <h1>BatchProcess v1.2</h1>
    THE automation tool for engineers!
    <ul>
    	<li>Save an entire assembly in any 28 native formats in 3 minutes.</li>
    	<li>Print off all 100s of drawings for production in just one click.</li>
    	<li>Set custom properties for every part in an assembly in one go.</li>
    	<li>Update all drawing templates with new revisions without hassle.
    And much more...</li>
    </ul>
    <a href="https://batchprocess.angelsix.com">Visit website for more details</a>
    </div>

    Rendered in IE7 & FF2:

    If you would like bespoke software, do not hesitate to contact us. Take a look
    at our Services for pricing and availability.
    
    <div class="productentry"> <img src="https://www.angelsix.com/images/products/batchprocess.png" />
    
    <h1>BatchProcess v1.2</h1>
    THE automation tool for engineers!
    
    <ul>
    
    <li>Save an entire assembly in any 28 native formats in 3 minutes.</li>
    <li>Print off all 100s of drawings for production in just one click.</li>
    <li>Set custom properties for every part in an assembly in one go.</li>
    <li>Update all drawing templates with new revisions without hassle.
    And much more…</li>
    </ul>
    <a href="https://batchprocess.angelsix.com">Visit website for more details</a>
    </div>

    Notice it is adding </p>’s randomly creating invalid html

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