WordPress, Plug-ins, PHP, Back-ends, HTML, CSS and Angular 4??

WordPress, Plug-ins, PHP, HTML, CSS and Angular 4??

I need to create a new UI on a WordPress site and want to use Angular. I am not a PHP developer, but would consider using PHP if it made this UI something I could more easily package into a WordPress plug-in.

I am a bit confused about how PHP fits into the equation.

Also, when I need to supplement this new UI with a back-end, is PHP the technology I use to communicate with the WordPress site?

Please explain my options.

Thanks.
newbiewebSr. Software EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
is PHP the technology I use to communicate with the WordPress site?
Yes
I am a bit confused about how PHP fits into the equation.
PHP is the server side code that interacts with the WP environment to retrieve content, format it and send it to the browser.

If you are moving to Angular then you have to ask yourself why - what is it you are hoping Angular will do for you.
You can most certainly use it but mixing Angular with WP seems on the surface to indicate a lack of understanding of requirement - although this is not cast in stone.

Angular is predominantly client side. The Angular code runs in the browser to manipulate the view in the browser. Callbacks to the server are made to fetch and retrieve data which is then rendered in the client. Server side rendering of views is also possible but lets leave that alone for now.

To understand how you would potentially use this I would need to know more about what the application is?

Usual practice (in this case) Angular runs the interface and calls the server (AJAX) for data (or submits data) - on the server a PHP handler for the AJAX call will process and return the data. This could be the built in WP AJAX handler or a custom service that loads WP and interacts with it in a custom fashion.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newbiewebSr. Software EngineerAuthor Commented:
I actually only introduce the topic of Angular since I wanted to learn Angular myself. It would be the front end of the WordPress site.

But, it sounds like I am trying to solve to many problems and should stick with PHP and make my new functionality simply into another PHP page.

So, PHP is the server side. I assume the page would be HTML, CSS, Bootstrap and PHP.

Does the use of PHP mean JavaScript is not used? Or wold JavaScript and JavaScript library's and plug-ins still be just as much needed on a PHP page?

Thanks.
0
Dave BaldwinFixer of ProblemsCommented:
In a Wordpress site, most of the content is stored in a database and PHP is used to fetch and display it.  There are usually NO HTML files in a Wordpress site, just the HTML pages generated by PHP.
0
newbiewebSr. Software EngineerAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.