Questions tagged [mvc]
The mvc tag has no summary.
19 questions
1 vote
0 answers
29 views
How to figure out redirection and contents in hybrid solution containing word press content and legacy code (ASP.net)
I have legacy solution(ASP.net) hybrid with wordpress content, I have access to my ASP.net code base but not wordpress content. How can I figure out which section in my site is served through ...
1 vote
0 answers
191 views
Where to write custom code (CRUD) in WordPress
I am new to WordPress development and I am wondering what is correct/standard way to "connect" WordPress content (for instance pages) with custom application/database developed by me. My goal is to ...
1 vote
0 answers
544 views
How do I create plugin or theme using MVC pattern?
I am creating theme for property listing and wanted to create a add-on plugin for admin and front end customization using MVC pattern.Does anyone have any solution for same?
1 vote
2 answers
3k views
Event-Driven Pattern vs MVC?
In general terms what is it that the MVC framework differs from Event Driven Pattern? Is it even comparable? eg.: Codeigniter vs Wordpress I mean while Codeigniter uses MVC it "watches" the Model/...
0 votes
2 answers
51 views
Better way to query posts?
I have several categories on my wp site. On the front page I want to make sections for all of existing categories and than output 4 most recent articles from each of the category. Is there a more ...
1 vote
2 answers
5k views
Adding the hook 'vc_before_init' inside a object
I'm working on my first OOP (MVC) based plugin. Everything works perfect, enqueue front/back-end styles, admin menu pages, shortcodes creation, etc... I load my main plugin class using the init hook....
4 votes
2 answers
2k views
Adding items to page template dropdown on Page Edit Screen
I am developing a WP theme with MVC approach. It only have index.php, functions.php and styles.css on the parent directory. So, I do not want to place page templates on it rather then I want to ...
0 votes
1 answer
197 views
Why load JS through the CMS framework? [duplicate]
Why are we using anything like wp_enqueue_script at all? or register, etc. Why are we sending Javascript through the PHP subsystem? There are all kinds of incompatibilities and inconsistencies ...
1 vote
1 answer
4k views
Create page with custom php script and fetched data
I created WP page and I need to show a table with some information. This information is hold in a database (hosted on the same server). To be more detailed, I'll try to split my question. I'm new to ...
3 votes
2 answers
2k views
Has anyone tried putting PHP ActiveRecord on Wordpress?
I have worked with Ruby on Rails and I was looking for some code that did something close to the wonderfull RoR's ActiveRecord. I stepped by this site. Its PHP-ActiveRecord! I found it amazing, and ...
1 vote
0 answers
63 views
using OOP approach to create plugin but stuck at making hyperlinks to work
I am new to wordpress development so please be patient if my question sounds simple or ridiculous, since I have been doing object oriented programming in PHP so i wanted to use the OOP approach in ...
1 vote
0 answers
805 views
How to separate HTML and Wordpress files
I want to separate the HTML and PHP code so that the HTML guys can easily work on their files without disturbing the PHP code, but couldn't find any proper solution or Start point to begin. Please ...
3 votes
2 answers
1k views
is it recommended to use an MVC framework in wordpress?
Just started learning wordpress... will start developping soon... is it recommended to start with an MVC framework for wordpress? tbh it's hard to follow/understand plugins as each developer use his ...
2 votes
2 answers
5k views
Is wordpress written in MVC pattern?
Is WordPress written in MVC architect? How to understand a CMS is a MVC? A CMS that written in MVC must have directories with named "Model", "Controller", "View"? Sorry for my beginner question .
0 votes
1 answer
286 views
What's the most minimal way in which a page can be hooked into WP?
I do a fair bit with custom API's on WordPress-based sites, typically by creating page templates. However, creating a custom page template, then creating a WP Page that utilizes it is kind of a pain ...