Tagged Questions

A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a blog.

learn more… | top users | synonyms (2)

0
votes
2answers
84 views

Get posts after calculating meta key

I have 2 meta fields for the posts, eg. meta_value and meta_count. Both are numbers. I want to divide meta_value by meta_count and based on the results I want to fetch the top 10 posts. So for ...
0
votes
1answer
205 views

WordPress add post format support not working

I am working on a theme and for some reason, add_theme_support( 'post-formats', ... ) is not working. In my theme's functions.php I have the following near the top: function mytheme_setup() { // ...
-1
votes
1answer
60 views

Themes VS Plugins [duplicate]

If I am customizing a WordPress site, should I do that via a theme or a plugin? By customization I mean: Add new custom post type Add new fields to the Users Add new widgets Add custom permalinks ...
0
votes
0answers
38 views

Themes and Plugins page “not found”

When trying to access my Themes or Plugins page on the three Wordpress sites I run they are all listed as "Not Found". I am not sure when this started, but I recently set up my third site and was ...
0
votes
1answer
48 views

Any Mobile Theme Switcher - Theme not complete (Stylesheet missing)

I am trying to install the theme "Any Mobile Theme Switcher" on Wordpress 3.2.1, in order to give my Site a different layout, depending on where it is displayed. Installation succeeds, but in the the ...
0
votes
1answer
86 views

How to enqueue javascript for WP Customize options sidebar?

I'm trying to add Chosen.jquery to the WP Customize options panel, so I can have an autocomplete box there. Is there any way I can do that? I tried with admin_init, admin_footer and ...
0
votes
0answers
55 views

language theme and multisite

i have a problem i can't solve, i made a theme with two languages support, italian as standard and english using the .po and .mo files (located in the /lang/ folder inside the theme), everything works ...
0
votes
0answers
30 views

how to customize WP 3.8 themes.php screen

I've been digging around on Google and looking at themes.php for clues - but I've drawn a blank. I'd like to customize the themes.php screen via a plugin in 2 relatively simple ways for a device ...
0
votes
1answer
32 views

Why in my theme I can't see all the statics content under the posts?

I am pretty new in PHP and I have the following problem, I am developing this WordPress problem: http://onofri.org/WP_BootStrap/ As you can see it is shown the unique post present on my blog (the one ...
0
votes
0answers
24 views

How get file address in wordpress folder?

In my wordpress's folder I have a file that I want make it available for some users with download link, does anybody have idea for this? Folder have these files: wp_admin wp_content wp_includes ...
0
votes
2answers
31 views

Is there any hook for theme activation ? or something similar?

I know this has been asked before however my question is different. So. I have a plugin that creates custom post types on the fly. the plugin also has a function to create template files for each of ...
1
vote
3answers
94 views

Some doubts about how to show posts in a custom theme?

I am pretty new in WordPress theme development and I have some doubt about this WP function used to show my post in the homepage: <?php if ( have_posts() ) : // Start the ...
0
votes
2answers
48 views

How to use custom page templates in a theme that hides page template option?

My client uses a theme called "Imbalance2", which hides the template option in dashboard "page attributes" section. Is there a way to assign a custom template to a page despite this - rather ...
0
votes
1answer
274 views

Want to add different text after each menu item

I want my main nav bar to display menu items with very short description of said menu under each item's title. To do this, I was hoping to just inject the menu item's 'title' attribute into the ...
11
votes
2answers
508 views

How do I exclude plugins from getting automatically updated?

There is an opt-in filter that allows all plugins on my site to receive automatic updates: add_filter( 'auto_update_plugin', '__return_true' ); I like this feature, but I don't want all my plugins ...
0
votes
1answer
36 views

Posts & page twice display

I install a fresh blog and add some posts & pages. With normal template/theme the pages and posts are fine while showing twice when i changed the theme. The problem lies in the template but i ...
0
votes
1answer
26 views

Why cant I change the text on this theme?

I am a noob at website creation, and I have only recently begun to use wordpress. I looked at a bunch of demos online and they have helped, but I a seemingly simple problem. My problem is that I am ...
3
votes
1answer
138 views

Check php version before theme activation

I've got theme that requires php 5.3+ version. If older - fatal error occurs with it. So what I need to do when user try to activate this theme is to check php version before going into theme code ...
1
vote
0answers
465 views

How to use custom fields to enable sticky posts on custom post types?

Background: The Wordpress Answers site has two questions which ask about how to enable sticky posts on custom post types (see how to make custom posts sticky? and Enable sticky posts to custom ...
0
votes
1answer
50 views

Why I obtain different visualization when I run the website on my local machine and on remote server?

I am finding a very strange behavior with a WordPress main menu into this custom theme that use BootStrap: http://onofri.org/WP_BootStrap/ As you can see in the horizontal main menu the background of ...
0
votes
0answers
136 views

Why this BootStrap main menu appear twice in my theme?

I am going crazy with the following WordPress custom theme that use BootStrap CSS framework: http://onofri.org/WP_BootStrap/ As you can see I have a problem with the horizontal main menu in my ...
1
vote
1answer
67 views

Add more widget areas to a theme

what's the best approach to add more widget areas to a theme? currently, my theme has 2 columns that display the widgets, but I'd like to extend it to 4 for example. It currently looks like this: ...
0
votes
0answers
13 views

Using jQuery safe mode in WP? [duplicate]

I am pretty new in WordPress and I know just a litle about jQuery and Javascript and I have the following problem: Into my functions.php file I load jQuery, the jQuery FlexSlider pluging (that create ...
-1
votes
4answers
76 views

Preserve theme settings when migrating from local to live

Whenever i try to move the website from local to live or viceversa Theme Option settings resets. Exporting the settings and importing it couldnot restore the images which is an upload field(P.S.it ...
0
votes
1answer
45 views

Multi-site get_bloginfo('stylesheet_directory') referring to sub-folder

I am using multi-site instance, but want each site to use the same themes throughout. When I reference get_bloginfo('stylesheet_directory'); I was expecting: ...
0
votes
1answer
1k views

Why a SlideShow (made using JQuery FlexSlider) can't work if I load it form functions.php but work if I load it from my footer.php file? [closed]

I have the following situation: I am carrying this pure HTML theme (that use BootStrap CSS framework) into a WordPress theme. This is the original pure HTML demo theme (I have the entire source code ...
0
votes
2answers
118 views

Why I can't load my JavaScripts using an hook inside my functions.php file?

I am pretty new in WP (I came from Joomla) and I have the following problem: I am carrying this pure HTML theme (that use BootStrap CSS framework) into a WordPress theme. This is the original pure ...
0
votes
2answers
58 views

Using filter in the widget causes fatal error

I'm adding a filter for a WordPress query in a widget. I'm adding as following: function filter_where( $where = '' ) { } add_filter( 'posts_where', 'filter_where' ); $query = new WP_Query( $args ); ...
0
votes
0answers
54 views

Why the slideshow is not shown in my theme?

I am pretty new in WordPress theme developing and I have the following problem. I am trying to create a WordPress theme that used BootStrap CSS framework based on this BootStrap demo static website ...
0
votes
1answer
193 views

How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?

I am pretty new in WordPress and I have the following doubt about how to insert in my homepage an immage that is in a subfolder into my theme directory. So I have the following situation: Into my ...
0
votes
1answer
202 views

How to correctly add JQuery in a WP theme?

I am pretty new in WordPress and I have the following doubt: I have to include JQuery into a theme and I am doing in this way: I create the following function into functions.php theme file and I add ...
0
votes
2answers
68 views

Some questions about how proper add 2 CSS file in a WordPress theme?

I have the following situation loading a CSS. I have a WordPress theme that load a style.css settings file by this code into my functions.php file: /* Function automatically executed by the hook: * ...
4
votes
2answers
368 views

Why I can't add a CSS style in this WordPress theme?

I am trying to add a CSS style to a WordPress theme that I am developing as is shown in this tutorial: http://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/ ...
0
votes
2answers
377 views

Where is definied the theme location for the main menu in a WordPress template?

I am pretty new in WordPress (I came from Joomla) and I have the following doubt related the Theme Location of the main menu. For example, using the preinstalled Twenty Twelve theme, if in the ...
0
votes
1answer
63 views

Some doubts about WordPress handle the horizontal main menu visualization

I am pretty new in WP (I came from Joomla) and I have some doubt regarding how WordPress handles the main menu (I mean the horizontal menu in the header). As example I use this online test website: ...
0
votes
1answer
82 views

Why in this WordPress theme I can't see the Main Menu?

I am pretty new in WP (I came from Joomla) and I have the following problem. I have installed WordPress on my server and if I use one of the included theme (such as the Twenty Thirteen theme) when I ...
1
vote
1answer
808 views

Problem only while using require_once() within functions.php

I use add_theme_page() within my child theme's functions.php implemented something like this... // other functions located here that create a custom options page in the Dashboard. // THIS IS NOT A ...
1
vote
2answers
54 views

What are the things that will be affected in case there is some wordpress updates or theme updates?

I amm getting into my head what this child theme is. I have just read it on the internet, and wondering if I do really need to study it or no need. I don't know any coding and stuffs. I don't have ...
0
votes
1answer
255 views

Translation of theme using child theme

I have created a folder called “languages” in my child theme directory and added a: da_DK.po and a da_DK.mo file generated using POedit. I have created a functions.php file in my child theme ...
0
votes
3answers
387 views

Convert theme to be based on Bootstrap?

I have a theme that i would like to be based on the bootstrap grid instead of its original one and I'm in doubt if this is relatively easy to change or I will have unforeseen challenges. So my ...
0
votes
0answers
46 views

wordpress search result page post_type order

i want to customize the search. what i need is when user search for ex: if user search for tools in search result will return result in following manners. Pages page 1 page 2 Posts post ...
0
votes
1answer
231 views

Edit raw HTML of the landing page

I just created and set up a landing page for my blog. I use Weaver theme. I checked every checkbox to remove all the stuff I don't want ( Hide Page Title, Hide Site Title/Description, Hide ...
0
votes
2answers
649 views

WP admin bar only on some pages

I am trying to create my first wp theme. So far it has been quite nice experience, but now i have a problem that i don't quite understand. The Admin bar is showing only on some of my pages, on the ...
0
votes
2answers
34 views

Work on theme files on a server & browser preview before installing it

A friend of mine who has got a live Wordpress website has bought a new theme. Before he's going to install and use it, he would like to adapt the theme's styles to his current web design. I uploaded ...
2
votes
0answers
128 views

Best practice (forward compatibility) for theme options

So here is what I'm wondering... You all know about Option-tree and similar frameworks that theme authors are using for their theme option pages. You also all know that since 3.4 WordPress introduced ...
0
votes
1answer
50 views

How to change images size after theme modification?

The images in the previous theme were using a height and width listed in the source html. The new theme will resize the images using percentages, so I need to remove all the height and width in the ...
0
votes
0answers
39 views

How can I establish the credibility of a theme/plugin author?

As prompted by the question "Are WordPress Plugins Necessary?", through what practices can administrators of self-hosted WordPress installations establish the credibility of a theme/plugin author ...
0
votes
1answer
43 views

What is the template file for topic layouts in bbPress?

The theme I'm using edits the Topic layout in such a way that the role is not being displayed anymore. I'd like to revert those changes in the theme editor, but I can't seem to find the template file ...
0
votes
1answer
327 views

Programmatically Selecting Theme Based on URL

I've inherited a site which has a mobile version. Let's call it qqq.com. It has a Varnish server in front of it to cache the pages. But it seems the Varnish server is also detecting mobile requests, ...
-1
votes
1answer
110 views

Javascript as Jquery Function Call?

Refer to Nice scroll to wordpress wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call var seq = 0; ...