Questions tagged [mvc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
20 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 ...
Newton's user avatar
  • 11
1 vote
0 answers
159 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 ...
n0hepe's user avatar
  • 11
1 vote
0 answers
504 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?
shishir mishra's user avatar
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/...
Johnthomas's user avatar
0 votes
2 answers
39 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 ...
Reygoch's user avatar
  • 189
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....
Bjorn's user avatar
  • 41
4 votes
2 answers
1k 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 ...
Sisir's user avatar
  • 7,772
0 votes
1 answer
184 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 ...
McJimbo's user avatar
0 votes
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 ...
Evghenii Maslennikov's user avatar
3 votes
2 answers
1k 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 ...
Mauricio Moraes's user avatar
1 vote
0 answers
61 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 ...
Shairyar Baig's user avatar
1 vote
0 answers
769 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 ...
Moeed Farooqui's user avatar
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 ...
yeahman's user avatar
  • 724
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 .
user2604011's user avatar
0 votes
1 answer
260 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 ...
John Rork's user avatar
  • 121
0 votes
1 answer
485 views

Kohana Frontend, Wordpress Backend

I love Kohana code, I don't love Wordpress code. I need to upgrade a blog to have a custom theme, very custom with Grid style blog roll (like Pinterest) and Traditional Blog Roll, and fully ...
user1833148's user avatar
3 votes
2 answers
815 views

How to add a new menu/submenu page in WPMVC? [closed]

I'm completely new to WPMVC. Followed and finished their tutorial for creating plugins. Now I'm trying to add a search page to search Venues (that comes from their example!). This page should appear ...
Rutwick Gangurde's user avatar
3 votes
2 answers
4k views

require.js to load javascript

whilst wp_enqueue_script seems to work it's not really elegant. I'm currently making a WP front end which uses MVC (backbone.js) and has literally 30+ seperate Model/View/Collection/Controller scripts ...
Alex's user avatar
  • 471
54 votes
10 answers
30k views

How to structure a plugin

This isn't a question about how to build a WordPress plugin. Rather, what, if any, guides could be applied to how to put together the file architecture of any plugin. Some other programming languages ...