2016-07-27 PHP Testing, 1, 2, 3

<?php echo “<p>Testing my new PHP function.</p>”; ?>

Doesn’t work in attempts to embed in content-area.  I also tried other places, but it ‘broke’ the code of the theme. Changed the theme to twelve for now.

Update on 2016-07-30: I have spent the last two days using Cloud9 to test PHP code and copy proven snipets to twelve successfully. I cannot remember exactly what else I wanted to do, so I am going through the code section of PHP in PHP, MySQL, JavaScript & HTML5 All-in-One For Dummies, which has proved reasonably accurate so far.  I have corrected (library) book in a few notations where print faded.  However, the statement that single quotes are interpreted as literals does not seem to work in Cloud9. Everytime I put in a variable name that matches, even without the preceeding dollar sign, strange things happen.  I may pursue this later, but for now I am happy that I have added this statement to theme twelve successfully:


        <?php
	echo ‘<br /> &copy;’;
	echo date("Y");
	echo ‘Creative Aspects, Inc.’;
        ?> 

This produces: Content ©2016 Creative Aspects, Inc.
Note that this was hard to get into Word Press post because the editing took place and converted text to html even using the Text tab, so all HTML symbols were used for less than, greater than, left single quote, right single quote AND ampersand.

Added function to actually get the year from posted/updated. Look at source code of the pages to actually see the function called auto_copyright.

2016-06-21 Place Holder for PAS Related Posts

Using subdomains redirected with search results which fixes the URLs problem before production link.  What does this mean? If you use the category to select posts and the results have a url (link), the link is not clickable.  Therefore, I discovered a work around by creating a subdomain and redirecting the subdomain with searchable category in the redirect.

That works, but is only a temporary solution.  I have an FTP account.  Now I have to read up more carefully before I attempt to fix this problem by editing the PHP.  See related posts:

2016-06-15 Fix Search Result Links

2016-06-15 Fix Search Result Links

I used this URL to find the information to change the search template so that it provides the LINK address correctly. Now if I can just determine the editor for the theme.

You need to edit your search results template. It’s broken, as it’s missing post titles and links to the posts.

<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>

adds the title and

<a href="<?php the_permalink(); ?>">Read more...</a>

adds a link to the post, when added to your search results template. [Mikko Saari]

https://wordpress.org/support/topic/no-links-to-results-in-search-results