Skip to content

Tag: function

How do I display a wordpress page content?

I know this is really simple but it just isn’t coming to me for some reason and google isn’t helping me today. I want to output the pages content, how do I do that? I thought it was this: Answer @Marc B Thanks for the comment. Helped me discover this:

PHP: a short cut for isset and !empty?

I wonder if there any better ideas to solve the problem below, I have a form with a number of input fields, such as, But sometimes don’t need certain input fields above in my form, for instance, I only need the page title for my db injection, And I have another php page to handle the $_POST data, Every …

PHP append one array to another (not array_push or +)

How to append one array to another without comparing their keys? At the end it should be: Array( [0]=>a [1]=>b [2]=>c [3]=>d ) If I use something like [] or array_push, it will cause one of these results: It just should be something, doing this, but in a more elegant way: Answer array_merge is the…