Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

0
votes
0answers
29 views

Checking supported arguments in theme features ( current_theme_supports )?

I think I wan't to use get_theme_support since it returns an array of arguements where current_theme_supports doesn't (as far as I know). For example, here's a theme support in genesis for adding ...
0
votes
1answer
18 views

Weird 'theme update' error

I am developing a theme (which I am calling AsylumInfo) that gets built into a directory call /build and I have symlink from there to the wordpress setup on my computer. When I use wp-admin I get ...
0
votes
1answer
32 views

Hook in parent theme Menu function

Trying to modify Parent Menus function on child theme, the original function is: function original_theme_menus() { $menus = array( 'top' => __( 'Top Menu', 'theme-domain' ), ...
0
votes
0answers
31 views

Plain text (HTML) in wordpress admin

I am developing my custom theme and I noticed that some of the links result in showing me plain text HTML instead of normal webpage. I tracked down the issue and found out that this happens when I ...
0
votes
2answers
50 views

How can I fix those issues generated by the Themecheck plugin

I've got the following error messages on the themecheck plugin in my WordPress theme. REQUIRED: The theme uses the register_taxonomy() function, which is plugin-territory functionality. ...
4
votes
1answer
106 views

Comment form not display properly?

I want to display comment form in my blog page comment_form() work properly but its display like that: Comment name email website But this form should be display like that ...
1
vote
1answer
25 views

Is accessing theme and using customizer GPL distribution?

I am theme developer and I want to make a "demo" website, where people to which I give password will have access to nearly all theme functions (except theme editor) -> they won't have full admin ...
0
votes
1answer
64 views

Bootstrap grid system is not working in my Wordpress theme

I'm a long time Wordpress user but this is the first time I dared to build my own theme (while following a tutorial though). I'm trying to use Bootstrap as the layout tool for the theme, but for some ...
0
votes
1answer
34 views

How to debug theme (Theme is causing pages to have no style or HTML <head> section)

I have a WordPress theme given to me by a client, so not familiar with it at all. Activating the Twenty Sixteen theme resolves the problem, so it's not a plugin but definitely the client's theme. ...
0
votes
1answer
40 views

How to determine if WP_DEBUG is enabled? [duplicate]

I believe I saw this done in a few plugins before, but it has been awhile and I have no clue what plugins offered this or how they offered it, but what I am trying to achieve is this... I want offer ...
0
votes
0answers
23 views

Why the output of an image gallery plugin is not displayed into a page of my custom theme?

I am pretty new as WordPress developer and I am going crazy with a theme developed by myself starting from 0. So, at this link you can download the entire theme so you can see in the details the ...
0
votes
1answer
19 views

Fixed button and slideshow in template upload per page

For all products there is a different page. Every product page will have the product template. On this template I'll have 3 download buttons and a slideshow. Now I want that when making a page for a ...
-1
votes
1answer
57 views

Convert Html5 to Wordprss

I do design a HTML5 template.now i want convert that template to wordpress theme.i was convert main page(Index.php). now i want two page, one for create a section in my theme for blog which show ...
0
votes
1answer
52 views

Single page for Custom Post Type not found

I made a custom post type named rt_test in a WordPress plugin as follow: register_post_type( 'rt_test', array( 'labels' => array( 'name' => __( 'Tests' ), ...
0
votes
0answers
58 views

Customizer Api: Load settings and controls from dynamically generated array

I have a front_page setting like so: $wp_customize->add_section( 'front_page', array( 'title' => __( 'Front Page' ), 'priority' => 120, ) ); I am trying to allow the user to do ...
0
votes
1answer
25 views

Display Page featured Image as well as Posts featured Image

Ok, I have hit a bit of a roadblock. I have a page that has been set to display the posts (which have their own featured images). I tried calling the posts featured image in the loop (which worked), ...
0
votes
1answer
38 views

Installing WordPress on a long temporary URL from host

I'm designing and developing a WordPress site to replace a 2005 HTML/CSS site. My client's hosting company said they were switching systems and his is one of the last to move, so they set me up on a ...
6
votes
1answer
159 views

Understanding Wordpress functions' naming conventions

Many Wordpress functions follow naming conventions, probably the most well known of these would be the the_*() functions, such as the_post(), used in The Loop. Obviously the is_*() family of ...
1
vote
2answers
32 views

What is the correct way to update both WP/plugins/themes without breaking the site?

We seem to get Wordpress core updates/plugin updates/theme updates thick and fast and usually every day. When managing a third party Wordpress, what is the best procedure to stay secure and have a ...
-1
votes
1answer
63 views

WP site makes mobile browser crash for high memory usage

I have this site: http://theguiltycode.com It uses foundation as a theme and is hosted in bluehost. I can load the site without much problem in desktop browsers, but in mobile the site reloads like 3 ...
0
votes
1answer
101 views

How do I remove p tag *insertions*? Disabling `wpautop` removes manual tags

I am trying to post static pages with HTML content. So I need to disable wpautop, but when I do this my content is stripped of all <p> tags it has. I remove the wpautop filter from my header....
0
votes
1answer
52 views

How to add custom nav_menu_css_class to certain menu only?

I want to add a custom CSS class to menu items. So far, I got it working by using the filter hook nav_menu_css_class. However, I want to add this class to items of a specific menu only. So, how must ...
0
votes
1answer
24 views

Get chronological page order

I just want to know if Is there a way to get chronological page order by page ID ?? $args = array('order' => 'ASC', 'orderby' => 'date', 'post_type' => 'page', '...
4
votes
1answer
52 views

comment_form() generates the wrong action url

I created the file comments.php. Inside it I have a manual loop for my comments section. I loop from offset = 0 + ((page - 1) * total_per to offset + total_per). The problem is when I add new comments,...
0
votes
0answers
27 views

Child theme not overiding parent on some but not other elements

working locally so cannot link to site, but my issue is that I have changed the twenty twelve child theme .site-content to margin 0. I want to reduce the space between the header and the main content. ...
1
vote
2answers
89 views

wp_enqueue_scripts not called on search page?

I've written a custom theme. It's pretty complex so I won't post a huge code block here for everyone's sanity. In my functions.php file I have the following hook being called: function ...
0
votes
0answers
51 views

Post date displayed double using Underscores Components Theme Starter

I'm building a WordPress theme based on components.underscores.me but after post a content, left the template tags untouched, the post date displayed double. Like this: Here is the the php codes ...
1
vote
1answer
154 views

Remove css styles from specific page

I need to remove all theme (both child and parent) css styles from a singular page using functions.php in a child theme. Here's what I'm currently adding to the child's functions.php // import parent ...
0
votes
2answers
34 views

Custom Theme Building & Permalinks

I am trying to build a custom theme for my wordpress site, I am putting it together from a bootstrap theme I found. This is my first foray into developing with php, and I've just finished learning to ...
0
votes
0answers
25 views

Bake-in TinyMCE Advanced into theme?

Looking to bake-in the TinyMCE Advanced editor into my theme automatically without using the plugin. Can this be done or is this outside of the scope of what a hook can do within WordPress? I have no ...
1
vote
1answer
42 views

Is there a way to add a class to non current menu item?

When using the wp_nav_menu function, the current menu item markup usually is like so: <li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item ...
2
votes
0answers
31 views

Translating plugin inside the theme [closed]

I've developped a WordPress Business theme and I use it to sell websites to local businesses. Everything works like a charm. But. One thing doesn't. I've included the Redux plugin into my theme. ...
0
votes
1answer
119 views

Theme Customizer - Javascript (jQuery) update using `.load('file.php')` - Fatal Error: Call to undefined function

MY SETUP (AND CODE) Wordpress Version 4.4.3 (Latest at time of writing) Installed on a local server using XAMPP I am using the WordPress Theme Customizer, and updating settings via Javascript (...
1
vote
2answers
70 views

Checking if there is an Image inserted - if not don't display anything

So within my Customizer I have a section that controls this Slider on the Homepage - the thing the client might not want to use all the Slider Images but all the Sliders still show anyway and the ones ...
0
votes
0answers
78 views

wp_nav_array() With A Hamburger Menu

I don't understand how the wp_nav_array works even after reading the codex thoroughly and I'm having issues with adding a menu. My html + css looks like this: <!-- Header --> <header id="...
0
votes
1answer
37 views

Create a variable with string, array or multiple values

I'm running some functions that will allow a user to register their own custom templates to my custom theme from an external directory. They can see these page templates in the wp-admin and they ...
1
vote
1answer
60 views

How to get javascript slider to work! [closed]

I've only just started to develop my own themes and i'm stuck adding javascript to my slider. I've added the slider into my index.php file as below: <div class="carousel"> <div class=...
0
votes
0answers
51 views

How to develop custom URL redirection

I'm writing a custom theme and have a custom post type which represents an external entity (e.g. a website). Hence, I have a field 'external_url' in my post type. Part of the custom post type post's ...
1
vote
1answer
91 views

Integrating Orbit slider into wordpress through custom post type

I am currently working with FoundationPress, It is a great starter theme loaded with cool features. I would like to create a custom post type called "slides" which will be displayed on the homepage ...
0
votes
0answers
40 views

How to hide default sidebar widgets?

I'd like to hide/not display all default widgets(Search, Recent Posts, Recent Comments, Archive, Categories and Meta) which are inserted into custom sidebar when the theme is installed. (Removing them ...
0
votes
2answers
28 views

Display custom post using ID

In my theme, I have a custom post type called sliders. Here the user is allowed to upload images in a meta-box. So, the images are saved as meta data in wp_post_meta table. Now what I want to do is, ...
2
votes
1answer
80 views

Theme Customizer not loading

I have created a new theme and i use it in some of my sites (multisite) but at one site the customizer preview does not load (spinner never stops). Loading the customizer preview of other themes work ...
0
votes
0answers
70 views

Help with folder structure for MVC plugin / theme

I know similar questions have been asked many times, but I couldn't find an answer that would help me progress with my project... Here's my situation: Large part of my project is for logged users ...
0
votes
0answers
27 views

Creating a WordPress website using WP-CLI

I really struggling to work this one out, its about WordPress / WP-CLI & BASH. Heres my script: if [ ! -f ".env" ]; then touch .env echo -n "Enter the DBNAME and press [ENTER]: " read ...
0
votes
1answer
17 views

get_posts is duplicating

I have the following code where I want to show one query with the last "post type" post and one query where I want to show the rest. Problem is that the last query is duplicating the first one. How ...
0
votes
0answers
35 views

Wordpress Theme & BWS Portfolio Plugin Style Messed Up

I am very new to WordPress. I made my own theme using Twitter Bootstrap. Everything works fine when it comes to posts and pages. Now I installed the BWS Portfolio plugin and when I try to go to the ...
0
votes
1answer
18 views

Query wp_postmeta into an array based on post_id

I know this might be a simple question but can someone explain to me how to query the WP database and pull in all the "meta_key" and "meta_value" from "post_id" into an array? I have looked at code ...
1
vote
0answers
60 views

Array Chunks and Inserting Varying HTML in WP_Query

I am trying to output the latest 5 posts from my blog. I would like each post thumbnail to populate divs in the following format. <div class="row full"> <div class="large-6 medium-6 ...
1
vote
1answer
64 views

What is the best way to organize template parts?

I am trying to bring some order in to theme files and would like to separate templates parts. I see that underscore ( _s ) has done something similar but they moved only content templates inside , ...
-1
votes
2answers
44 views

What to do when child theme is out of date with parent theme

I inherited a site with Genesis as the parent theme and a Genesis child theme. The parent theme has smoothly been upgraded over the years. The child theme, however, was based on an older version of ...