Optimize and unify PHP

We should check the PHP code for places to optimize and/or unify it, to make it more consistent.

For example, you can generally replace lines like these:

echo apply_filters('the_content', $post->post_content);

with this

the_content();

Generally, you should add a the_post(); call when using the_ functions. If you don't, most stuff still works, but some mysteriously breaks.

Files to rework

Checked files have already been optimized and unified

  • header.php
  • index.php
  • landing.php
  • 404.php
  • footer.php
  • functions.php
  • page.php
  • single.php
Edited by Jakob Moser