Showing posts with label WordPress. Show all posts
Showing posts with label WordPress. Show all posts

Send Mail from an AMP page

In one of my projects I embedded Google's new open-source initiative, AMP(Accelerated Mobil Pages). It was a WordPress website. I was all done with most of the part of website, however there was still a module which needs research i.e. implementing contact form into website.

While, we implementing any form in a website, we need to add validations as well as the data-handler scripts. So, I had two problems to resolve on:

WordPress AMP Plugin

WordPress AMP add AMP(Accerlated Mobile Pages) support to a WordPress website. WordPress AMP provides support for the inbuilt post types as well as the custom post types and custom taxonomies.

Post Hits Counter

Post Hits Counter v1.03.19 is now available on WordPress website with new improvements. Using Post Hits Counter you can capture each and every hit on your posts, pages and custom-post types.

Introduction to PHP

  • PHP is open source scripting language widely used for the web development. It was introduced in 1995 and is influenced by other scripting languages such as Perl, Java, C, C++.
  • PHP stands for 'Preprocessor Home Page'.
  • PHP scripts are executed on the web-server.

Run shortcodes from a custom field.

By default, WordPress Custom Fields display any of the string you enter, as plain-text. In same way when you try to execute a shortcode, (in the format [shortcode] VALUE [/shortcode]) you end up displaying the entire text, including the html tags.

This is because, Wordpress do not run shortcodes added to custom fields.

Find Related Posts Under Same Category/Tags

Nowadays very oftenly it is required to display related posts (or other post types) underneath your content. This engage readers, and provide them link to related posts to read, and effectively make them spend more time on website. Also, related posts come with added SEO benefits, as they provide internal links to your content. So, how you should go about displaying related posts in website?

To work with, you will need some sample content. So, let’s create a few posts and assign them on a few categories.

Implementation Steps:

Enable PHP in Widget Without Plugin - WordPress