OK, that takes care of one php “code translation,” and it points me in the right direction regarding what I “think” are called “wordpress functions.” Thanks a ton!
Now, coming from a linguistic perspective, how can I begin to “translate”
<div class=”entry”>
<?php
$expand = get_post_meta($post->ID, ‘ExpandOnIndex’, true);
into English, so that I can begin to “think” PHP code in English and then write it in PHP?
<div class=”entry”> =
div (I don’t know)
class is a type of CSS style
= is
within quotes the name of the style
<?php
open carat = ?
? = I’m guessing here…uh…start code
php = the type of code to start
$expand = get_post_meta($post->ID, ‘ExpandOnIndex’, true);
$ = begins PHP variables
$expand = begin the variable called expand
$expand = = defining the variable called expand
get_post_meta($post->ID, ‘ExpandOnIndex’, true);
the wordpress function, which I can set to particular parameters as outlined in the WordPress codex.
OK, so, with what I did, can you guide me to a “linguistic translation” of PHP, or to a resource that explains coding in that manner?
Best,
Dainis