Discussion:
Working with PHP Functionality Inside of Wordpress
dealTek
2014-05-22 17:08:30 UTC
Permalink
Hi all,

I have moderate level PHP programming skills. I am also interested in merging those skills inside of the WordPress app. With their advanced responsive design themes and many other functions it seems like a good idea. I have tried loading some PHP plug-ins in WP – but I don't seem to get them to do more than basics.

For example, I am looking to be able to perform moderate level PHP/MySQL functionality such as C.R.U.D. / perform basic queries to the database and display the results with various looping functions etc. all the basics we would be doing on an average PHP driven website. In other words build a php/mysql website but simple inside of WP.

Currently, I don't know how it's possible to do this inside of posts and pages. Of course somehow this is possible, since there are plug-ins like woo commerce where they have built a whole php driven store functionality in a plug-in.

Q: So, I'm curious if anybody knows how I can get started working with PHP/MySQL inside of the WordPress app?

--
Thanks,
Dave - DealTek
***@gmail.com
[db-14]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings
2014-05-22 17:24:52 UTC
Permalink
Post by dealTek
Hi all,
I have moderate level PHP programming skills. I am also interested in merging those skills inside of the WordPress app. With their advanced responsive design themes and many other functions it seems like a good idea. I have tried loading some PHP plug-ins in WP – but I don't seem to get them to do more than basics.
For example, I am looking to be able to perform moderate level PHP/MySQL functionality such as C.R.U.D. / perform basic queries to the database and display the results with various looping functions etc. all the basics we would be doing on an average PHP driven website. In other words build a php/mysql website but simple inside of WP.
Currently, I don't know how it's possible to do this inside of posts and pages. Of course somehow this is possible, since there are plug-ins like woo commerce where they have built a whole php driven store functionality in a plug-in.
Q: So, I'm curious if anybody knows how I can get started working with PHP/MySQL inside of the WordPress app?
Are you sold on WordPress? I'd advise Drupal over WordPress. The
architecture is just more solid. I work with both and I always feel
dirty with the WordPress approach to hooks and themes... like someone
had an idea and vomited it into the core without regard for sane
development methodology.

Cheers,
Rob.
--
Phone: 613-822-9060 +++ Cell: 613-600-2836
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Marc Guay
2014-05-22 17:49:43 UTC
Permalink
Hi Dave,

I suggest that you immerse yourself in the Wordpress docs and get to
understand how it works under the hood. Everything, basically, is a
"post". Once you wrap your head around that, start playing with
WP_Query and you'll get on the track you're looking for. The
#wordpress IRC channel on freenode is quite active and helpful as
well.

Good luck,
Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
James Colannino
2014-05-22 18:19:06 UTC
Permalink
May or may not be a solution for you, but might I humbly suggest you
investigate MVC frameworks? Depending on the functionality you want, you
might find that starting with a general framework is easier than
shoe-horning what you want to do into a CMS. Just a plug: my favorite
framework is LightVC + Idiorm/Paris (but there are lots of others to choose
from.)

James Colannino, Modern Literary Fantasy Author (writing as Jeff Coleman)
http://blog.jeffcolemanwrites.com/ <http://www.jeffcolemanwrites.com/>
Post by Marc Guay
Hi Dave,
I suggest that you immerse yourself in the Wordpress docs and get to
understand how it works under the hood. Everything, basically, is a
"post". Once you wrap your head around that, start playing with
WP_Query and you'll get on the track you're looking for. The
#wordpress IRC channel on freenode is quite active and helpful as
well.
Good luck,
Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Paul M Foster
2014-05-23 15:17:20 UTC
Permalink
Post by dealTek
Hi all,
I have moderate level PHP programming skills. I am also interested in
merging those skills inside of the WordPress app. With their advanced
responsive design themes and many other functions it seems like a good
idea. I have tried loading some PHP plug-ins in WP – but I don't seem
to get them to do more than basics.
For example, I am looking to be able to perform moderate level
PHP/MySQL functionality such as C.R.U.D. / perform basic queries to
the database and display the results with various looping functions
etc. all the basics we would be doing on an average PHP driven
website. In other words build a php/mysql website but simple inside of
WP.
Currently, I don't know how it's possible to do this inside of posts
and pages. Of course somehow this is possible, since there are
plug-ins like woo commerce where they have built a whole php driven
store functionality in a plug-in.
Q: So, I'm curious if anybody knows how I can get started working with
PHP/MySQL inside of the WordPress app?
This is all answered in the online docs available on the Wordpress site.
I researched it myself at one time a while back. In fact, you can work
with the code base of wp to display pages of your own design, without
ever using the actual wp engine to display the pages. Search for "The
Loop" on their site, a key concept in their core code.

BTW, I agree with the other respondent about Drupal. It's a marvel of
smart design. But I'd have to say that Wordpress's administrative
functionality more complete and easier to use than Wordpress's.
Wordpress also had more widespread support and adoption than Drupal.

Paul
--
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
dealTek
2014-05-23 17:54:20 UTC
Permalink
Thanks for the suggestions. I will also take a look at drupal. DO you happen to have a starting URL links or "search terms" of info on this "add my own php" subject in drupal?


--
Thanks,
Dave - DealTek
***@gmail.com
[db-14]
Robert Cummings
2014-05-24 14:42:51 UTC
Permalink
Post by dealTek
Thanks for the suggestions. I will also take a look at drupal. DO you happen to have a starting URL links or "search terms" of info on this "add my own php" subject in drupal?
https://drupal.org/developing/modules

Cheers,
Rob.
--
Phone: 613-822-9060 +++ Cell: 613-600-2836
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Larry Garfield
2014-05-25 03:27:21 UTC
Permalink
Post by Robert Cummings
Post by dealTek
Thanks for the suggestions. I will also take a look at drupal. DO you
happen to have a starting URL links or "search terms" of info on this
"add my own php" subject in drupal?
https://drupal.org/developing/modules
Cheers,
Rob.
Note that Drupal 8 is/will be (it's in alpha now) a heavy rewrite to
shift from PHP 4-era design to PHP 5.4-era design, leveraging many
components from Symfony, Zend, and other modern frameworks. Dev
documentation for Drupal 8 is still a WIP as the platform itself is not
actually done yet. :-)

I actually just gave a webinar and presentation at php[tek] on Drupal 8
development, which should act as a decent kick-starter (although a few
things will still change before release). Slides from the conference
are here:

http://www.palantir.net/presentations/phptek14-d8-for-devs

And the video of the webinar (the slides are very slightly different,
but not substantively):



Cheers.

--Larry Garfield
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...