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

learn more… | top users | synonyms

0
votes
0answers
12 views

Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update

am using this code to create a Metabox for CPT. Now I am able to view the updateded / saved Text input on post but the Checkbox and selected options return null after save or update. Can you please ...
0
votes
1answer
22 views

How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?

I am designing a magazine style theme and I want different image sizes as to show on index.php page. Now for this, I am using <?php the_post_thumbnail( array(100, 100) );?> but it is picking ...
0
votes
0answers
16 views

Editing attributes of ul and div by wp_nav_menu

According to documentation of codex site, the code $defaults = array( 'theme_location' => 'header-menu', 'container' => 'div', 'container_class' => 'navCtrl', ...
1
vote
1answer
24 views

Customizer: Unique identifier that distinguishes which image upload control is uploading an image

In the Theme Customizer, I've got a custom add_action('wp_handle_upload', 'upscale_responsive_bg_imgs') which upscales responsive background images when uploaded from the theme customizer. It's ...
0
votes
0answers
23 views

How to avoid Ajax in wordpress theme in making mulitple request?

here is my function that make request, When ever page loads this scripts makes multiple request in front end making web site load very slow. function enqueue_scripts_styles_init() { ...
0
votes
1answer
20 views

Output richtext metabox value

I have rich text metabox.When I echo the out put it shows html tags.If I write <h1>Hi</h1> in editor metabox it ouput the same.My works so far <?php $valueeee2= ...
1
vote
1answer
17 views

Symlink a directory to wp-content/themes

Is it possible to symlink a directory from my project folder to my wp-content/themes folder which is in a Vagrant setup called chassis: https://github.com/Chassis/Chassis ? I tried to symlink already ...
0
votes
0answers
12 views

Adding Co-authors Plus Plugin to Oldpaper Theme [on hold]

I'm trying to add the Co-authors Plus plugin to the theme Oldpaper. However, I've followed the documentation and it simply isn't displaying multiple authors. As per the instructions here, the code ...
0
votes
0answers
16 views

Theme Url relative, like plugin_url

Relative URL in plugin is very simple and transparent: plugins_url( 'ph.js', __FILE__ ); In theme: get_template_directory_uri(). '/I DONT KNOW THIS/' . 'ph.js'; How take URl by __FILE__? ...
0
votes
0answers
9 views

Support for new language packs in WordPress 4.0

WordPress 4.0 added a new language pack system. Is there a guide or api documentation or an article about this that you are suggesting to read? I only found translations_api in codex.
0
votes
0answers
15 views

Adding Wish-List feature to a WP [closed]

My client would like a WP site that would showcase his products. He is not planning to do actual sales online. However, he would like to have a feature where website visitors can create a login and ...
-1
votes
0answers
21 views

Cannot access to wp_query for custom query

On a custom page template, I run a custom query to get posts, here it is: $wp_query = new WP_Query( $args ); if ( $wp_query -> have_posts() ) : while ( $wp_query -> have_posts() ) : ...
0
votes
0answers
16 views

theme_mod and option type in WP_Customize_Manager's add setting API

The WP_Customize_Manager's add setting API support the type argument: type Optional. Specifies the TYPE of setting this is. Options are 'option' or 'theme_mod' (defaults to 'theme_mod') What is the ...
0
votes
1answer
20 views

Load slideshow.css file only if Slideshow is checked / on

I use <?php if ( get_option('mytheme_slider') == 'checked') { get_template_part( 'partials/slider/slider-java-script' ); } ?> to include the slider-java-script.php template part into my site. ...
1
vote
0answers
21 views

Theme Inspector “X-Ray”

I looked around and sadly didn't find anything answering this, and I'm almost 100% sure that it doesn't exist but I figured I'd ask this active community. I work in a Rails environment as a Front-End ...
0
votes
0answers
12 views

Custom wp_editor content format missing

I am using this code to render wordpress editor like page body editor. $content = ''; $editor_id = 'mymail_html_template'; wp_editor( $content, $editor_id, $settings = ...
0
votes
0answers
16 views

How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can't add a featured immage?

I have developed this custom WP theme: http://www.asper-eritrea.com/ As you can see into the post excertpt (in the home page) it is showed the first immage into my posts. To do it I use this code: ...
0
votes
1answer
19 views

Custom CSS no getting applied

I have a WordPress theme that I created, but for some reason in my template header, some of the styles I have declared are being overridden somehow. When I inspect in Chrome some of those elements are ...
0
votes
2answers
19 views

Wordpress app page not found error for posts with hyphen in permalink

I need some help related to permalinks. I have two custom post types "books" and "authors"(created using CPT UI plugin). i have created few authors where the permalink is generated as ...
0
votes
1answer
13 views

Two theme options pages for a theme

i am currently using a theme options page for a theme im building buti am looking to add another for advance settings. is there a way of doing this? Both would be using the same options would this ...
0
votes
1answer
11 views

Is there a way to include files in your theme to over write aplugin files? [closed]

Is there a way to include files in your theme to overwrite aplugin files? I am using a slider but am wanting to change the images the plugin uses and at the moment i am over writing the files in the ...
0
votes
2answers
38 views

Child theme CSS file is not loading background image

Hey guys I'm developing a child theme, I've created a style wich loads a background, I've created the images folder in my child theme as well. most of the styles are being loaded as planned, this one ...
1
vote
1answer
56 views

Messing up with transient API - getting flushed on refresh

Following the _s theme I wanted to make my own version of Post Categories List with Transient, and here's what I made: function my_blog_categories() { global $post; if ( ( ...
1
vote
1answer
35 views

I think emoji are killing my WordPress site… How can I debug?

I have had a rather frustrating last couple of days… after quite a bit of trial and error, I have come to the suspicion that emoji are killing my WordPress installation. Specifically, emoji in the ...
0
votes
1answer
25 views

Import from HubSpot COS into Wordpress 4?

I've been having zero luck finding any information on how-to migrate an existing site (HusbSpot COS) into a WordPress site. Does anyone know of any existing documentation (or suggestions) on the ...
0
votes
1answer
43 views

Creating Page Based on Category

I'm using WordPress 4.0, and the Hemingway theme. I've created a custom page template which currently pull blog posts based on the category I give it. However I'm currently using ...
1
vote
1answer
25 views

Usage of theme name in functions

I've been studying some functions.php files to get my head around theme development, and I keep stumbling upon a reference to the theme name inside functions. Something like this: <?php ...
0
votes
2answers
108 views

wp_head() not inserting the default stylesheet style.css

I have a custom theme with just a name in its style.css. I've activated it in admin which shows it just fine. In the index.php just <?php wp_head(); ?> and it doesn't output the line that is ...
0
votes
0answers
14 views

Allow to user select template only once

i want to give the user option to select template one time in multisites. way that can help me is to allow the user select the template once the user first login to the system. if you know how can i ...
0
votes
1answer
17 views

Lowest catagory link

I am trying to display lowest child category link.At this point I can only display the child category name but I want it with permalink.So far my approach $categories = ...
0
votes
1answer
26 views

Add a field to the taxonomy editor?

I would like to add an additional image field to WooCommerce Product Taxonomy Admin page as part of my theme. It works fine by modifying the existing class within the plugin, but it will be replaced ...
0
votes
0answers
15 views

Deleting files and directories with theme activation hook

Has anyone got some insight or good resources for a function to delete the standard plugins and themes upon activation of a custom theme? There does not seem to be a whole lot of info on the topic and ...
-1
votes
2answers
97 views

How to remove dashicons.min.css from frontend?

Is there any way to remove the dashicons.min.css file from the frontend? I know that they are used by the admin panel, but my theme doesn't use them so it's an unnecessary request.
1
vote
1answer
47 views

Js file is not adding using this code in functions.php

Sorry i am noob in WordPress. I am using following code in functions.php to add the .js file in wordpress. function your_function_name() { wp_localize_script( 'function', 'my_ajax_script', array( ...
0
votes
1answer
27 views

Why the dynamic_sidebar() call is putted into an ul tag?

I am pretty new in WordPress development and I have the following doubt about how the sidebar are putted into a WordPress theme. Looking into the official documentation: ...
0
votes
1answer
72 views

Theme Development for a Newbie

TL;DR, Skip to Trouble I am a programmer and web developer by trade. I'm attempting to launch my own small business website in order to showcase my talents. As such, I've created subdomains for ...
0
votes
1answer
35 views

Where is the sticky post option?

So I finally need to include sticky posts in a theme but it looks like the feature is gone. When I create a new post, and click "visiblity", the sticky option is missing. I checked a couple other ...
1
vote
2answers
35 views

one time popup after theme activation

I've written a custom theme which does some one-time setup chores after activation - things which I need to do every time I use it on a fresh copy of wordpress, like creating a nav menu and ...
0
votes
1answer
29 views

Add rel to all images in a post

I want to add a rel to all images in a post. I am trying following filter but it will wrap only the images which are in the gallery. It does not wrap the images which are added individually without ...
0
votes
1answer
15 views

child comments not displaying as nested

I'm having some trouble getting my comments to display as nested from other comments. My current max level of depth is set to 5 through the wordpress admin panel, but all my comments appear on the ...
0
votes
1answer
40 views

the_category() tag not styling HTML or CSS

I am having problems getting my the_category() template tag to style accordingly with the rest of my theme. I believe this is because the HTML isn't output the same way as the the_author() and ...
0
votes
1answer
20 views

How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?

Sorry if the title was confusing, I'm having a bit of trouble explaining here. I'm working on a theme for my site, and I'm using a slightly modified version of a custom comments template found here. ...
0
votes
1answer
36 views

How to show an entire post content and not also the excerpt?

I am pretty new in WordPress theme development and I have the following problem showing posts. You can easily understand what I mean opening this link: ...
0
votes
4answers
46 views

Does code in function.php differ from theme to theme

I have gone through some tutorials and I found that for every HTML to wordpress theme conversion, they write function.php file. Now I noticed that there is some common lines in that function.php.So ...
1
vote
2answers
49 views

How to display future posts - modified query still yields 404

I have a very strange problem and I am stuck. I want the single page to display posts with the post_status of publish and future. So I added this code to my functions.php in my theme: function ...
0
votes
1answer
46 views

Add new panel inside parent panel in WP Customize?

Is possible, add a panel within another panel. example: First Panel > child Panel > Section > First Setting ... Second Panel > Section > First Setting ...
0
votes
1answer
51 views

How to include plugin without activation?

I need to include plugin in my WordPress theme without plugin activation. I have these lines: include_once dirname( __FILE__ ) . '/math/class-constrained-array-rounding.php'; include( ...
0
votes
0answers
25 views

How do I get my theme scripts to load in a custom theme built from Bootstrap

I have created my own theme, pretty much from scratch, using Bootstrap 3.x. If just refer to the scripts from my footer.php file, it works. However, if I try to do it the right way, using ...
0
votes
0answers
61 views

Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?

I'm working on a new theme to replace an old one. The existing theme has custom menus and I can't figure out why in my new theme a call to has_nav_menu is always coming back false. In my ...
1
vote
1answer
50 views

Can't show custom post thumbnail sizes as background images

I'm trying to work out a solution for responsive background images in Wordpress to use on my clients' sites. This is what I got: 1) I created some custom thumbnail sizes: function ...