I'm creating a WordPress theme in which I'm using the Redux Framework for creating the theme's options page. I want to show multiple blog layouts without creating custom WP templates. I saw in many themes the URL is something like theme.com?home_layout=grid&sidebar=left theme.com?home_layout=list&sidebar=none Now in the theme-option file i've got this one for the sidebar: array( 'id' => 'sidebar_position', 'type' => 'select', 'title' => esc_html__( 'Blog sidebar', 'omio' ), 'options' => array( 'left' => esc_html__('Left', 'omio'), 'right' => esc_html__('Right', 'omio'), 'disable' …
I have a theme with options. I would like to display 3 posts for a specific woocommerce category, I could show category id and I don't know how to display products based on its category id, but I have code snippet it shows products by woocommerce category name. So I need now to a selected category name not its id, or to convert it from category id to category name? I tried following but it did not work at all. …
I'm using the cherry framework on a WP site. It comes with a custom post type that can be used to add 'Team Members' and create staff pages etc. I need to expand this so that I can add tags to each 'team member' inorder that I can essentially tag them as working in a department a / b / c / etc. The custom post type is registered in the theme-init.php file using this code; /* Our Team */ …
We need to develop an Admin Page within a WordPress Plugin. We'd like to use React as JS-Framework, because many other Plugins do the same and it works for them. However, what about the CSS? Is using the WordPress CSS really the way to go? It seems to be hard to use a proper CSS Framework inside of the WP Admin because of collisions. Furthermore, the Gutenberg Editor for example has a completely different interface (based on React also). Is …
When I run wp version --debug it shows that the bootstrap framework is being autoloaded and missing files... when in reality after tested bootstrap and decided not to use it... I completely removed it fro "code snippets" and a child theme that I created.. there is no trace of bootstrap install on my wp multisite 5.5.3 Debug (bootstrap): Fallback autoloader paths: phar://wp-cli.phar/vendor/autoload.php (0.007s) Debug (bootstrap): Loading detected autoloader: phar://wp-cli.phar/vendor/autoload.php (0.008s) Debug (bootstrap): Adding framework command: phar://wp-cli.phar/vendor/wp-cli/wp-cli/php/commands/cli.php (0.05s) Debug (bootstrap): Adding …
Are there any ways to incorporate Angular (Google's Angular, not AngularJS) into Wordpress? Either in the theme or in pages/posts? I may be working on a customer-facing website for a product, and the admin site for the product will be built in Angular. There are versions of some of what will be in the admin section that will also be visible to customers. If we could re-use the Angular code in the WordPress site, that would be ideal.
I do have a few PHP custom functions that I use almost every time on my applications. Those functions are not all related to WordPress, but some are and thus need that WP is initialized before I can use them (generic load for the text domain or custom post queries for example). I would like to be able to use those function in all my WP applications (themes and plugins) and I wanted to know where would be the best …
I have Zend framework 2 application (PHP), via which I want to use WP-CLI functionality. near Zend project I have WordPress project, which I want to maintain from Zend via WP-CLI. I see in the docs that WP-CLI also written on PHP. I dreamed that I install WP-CLI via composer in root of my project and can use its classes there. After installing via composer in WP-CLI's sources I see functions from WordPress (like as is_multisite and etc) and I …
I have a Framework 1.0 version git repo which is required via composer on my main Plugin. All work fine but once I create a second plugin that will use the 1.1 version of my Framework, how can I make Plugin A use the latest Framework 1.1 that came bundled with Plugin B? In other words, I need all my plugins to use the latest version of the Framework found in one of my plugins. I cannot seem to find …
So I'm kinda stuck on something that I'm trying to achieve and unsure how to even target it, so below I will explain all that I have and what I have tried. So I'm using the Genesis Framework and a child theme. I'm trying not to touch the Framework or the child theme, and do all the development inside mu-plugins but I'm having trouble targeting a custom template. So I've created a custom post type that is linked as /profile/ …
I would like to know, for being an expert WP developer, it's good to know Zend PHP framework or Symfony? If someone knows Zend, he can learn the WP framework and work with it faster and better or Symfony? best regards.
Since I am new to WordPress plugin development I have been examining the internal structure of many plugins. I have found that most of them don't fit any pattern and so understanding how they work can be difficult. I was wondering if there is more generalized way of plugin development, possibly with a framework, other than the methods described in official documentation.
I'm very new with Redux. I don't know how to show and hide a textarea using switch (without saving). When my switch turns on, the text input displays and when it turns off, the input hides itself. I tried to use action hook but it didn't work. Here's my code: Redux::setSection( $opt_name, array( 'title' => __( 'Test', 'redux-test' ), 'id' => 'switch_buttonset', 'desc' => __( '', 'redux-test'), 'icon' => 'el el-cog', 'fields' => array( array( 'id' => 'opt-text-email', 'type' => …
I have created a child theme. The parent theme uses Foundation-Framework. I also have included foundation framework to my child theme and trying to add a simple navbar with dropdown but the dropdown is not seems to be a dropdown. Here is my functions.php <?php add_action( 'wp_enqueue_scripts', '_my_child_theme_styles', PHP_INT_MAX ); /** * Enqueue parent theme styles considering styles dependencies. */ function _my_child_theme_styles() { // Parent styles that need to be loaded before the child theme styles. $parent_styles = array( 'parent_style_1' …
quick newbie question but the answer is nowhere to be found! I am building my site from the ground up on Wordpress with Genesis and a child theme (Minimum Pro). I am interested in implementing the Bulma CSS Framework for its ease of use. I would like to do this as efficiently as possible in terms of resources. How can I proceed? Is loading <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.5.2/css/bulma.min.css"> enough and optimized, or is there a way to load …
I have a custom database table within wordpress database.. I filled this database with data and wordpress posts table with matching ids an example would be... wp-posts table has id - title 1 - record1 title 2 - record2 title custom table has id - title - data1 - data2 - data3 1 - record1 title - 20g - good - 200USD 2 - record2 title - 30g - fine - 100USD I can reach data with custom php coding …
im trying to understand how Action Hooks and Filters work and have this example i want to edit This function is in a parent theme framework php file: public function formatArticleCat01( $show_category = false, $shorten_text_chars = 300, $show_date = true, $show_comments = false, $show_author = false, $show_views = false ) { $sFigure = ( $this->article_thumb != '' ) ? '<div class="col-sm-6 col-md-4 col-lg-5">'. $this->getReviewScore() .'' .$this->getFigureSmall() .'</div><div class="col-sm-6 col-md-8 col-lg-7">' : '<div class="col-xs-12">'; return '<div class="row clearfix"> <!-- start:article.default --> …
I want to create a fairly simple web application using Wordpress, making use of the built-in functionalities it offers. The app would a personal journal. New entries would be posts, user can choose categories, add tags, and fill out custom fields. Basic flow is this: User creates an account to access the site User can can view, edit, delete, and publish posts on the frontend User can view statistics about their own posts (total number, by category, by tag) User …
My site is using Cherry Framework theme. I changed the site to use https but there is still one jquery script which is obviously hardcoded because it's still using http. I have searched all files in theme directory and in cherry plugin directory as well but never found that line of a script. Can I still overwrite it somehow to use https?