Not so common HTML transition to wordpress issue

At the end every html tag, not self self closing tags, can be used how ever you want. Want to build a website using only <span>, go for it. Going by symantic html. A <section> can contain a <header> and <footer>, symantical that is correct. You can have multiple <header> and <footer> tags, they should … Read more

Can’t split the_title() by white space

The first way you tried should work if you use get_the_title() instead. It’s because get_the_title returns the title, whereas the_title() function echos the title by default. $title_split = explode(” “, trim(get_the_title()));

Update template without undoing all my edits?

You may want to look into child themes – they allow you to customize your theme without overwriting the original files, meaning you can still take advantage of updates to the original theme. This tutorial on Themeshaper taught me a lot.

Create a blank test.php

I usually do this for just code (no HTML): add_action(‘template_redirect’, ‘test’); function test() { // code goes here die; } For dealing with HTML I prefer blank theme, set up for testing. If you want to test in context of existing theme create custom page template, add/remove elements according to your needs and assign to … Read more

Differnt page template for page 2 of blog feed

Not sure if you can use a complete different template but you can use different template parts using the global $page variable. Example: global $page; if ( $page == 2 ) { get_template_part( ‘page’, ‘two’ ); } else { get_template_part( ‘page’, ‘default’); } This would load the template file page-two.php or page-default.php depending on what … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)