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

learn more… | top users | synonyms

0
votes
0answers
12 views

is it possible to get update link of a theme or plug-in?

I have a custom theme that I developed. I would like to show a admin notice to user who can manage wp. via function cyn_admin_notice(){ $info['last_update'] = ...
0
votes
0answers
28 views

Problem with get-pages and custom template

I build a one page wordpress theme and i use get-pages to load all pages in front-pages.php , but i can't load pages with custom Template . this is my code in front-page.php $pages = ...
0
votes
1answer
33 views

get_pages can't load pages with custom post types

I built a one page theme and I use get_pages() to load all pages in front-pages.php, but I can't load pages with a custom post type. This is my code in front-pages.php: $pages = get_pages( array( ...
0
votes
0answers
33 views

Best way to access variables in template markup

I am making my own mini OOP wrapper for working with wordpress themes. I have a main $settings variable that contains all of the information like definitions, scripts, menus etc.. I then pass this ...
4
votes
1answer
88 views

Getting instance variable in scope of 'wp_enqueue_scripts'

I need a little help getting my head around passing instance variable to a hook. I am reading the CSS files I need in my template dynamically and storing them in a $settings object that I am keeping ...
0
votes
1answer
28 views

wp_nav_menu work in functions.php but not in the theme

I use wp_nav_menu with this code in functions.php: register_nav_menus( array( 'sidebar_menu' => 'Sidebar menu', 'topmenu' => 'topmenu', ) ); $args = array( 'theme_location' => ...
-2
votes
1answer
41 views

Should I create a child theme for a parent custom theme? [closed]

I am going to create a mobile version of a desktop theme. Device Theme Switcher plugin will use a correct theme based on the client device. The desktop theme is a custom theme. So should I create a ...
0
votes
1answer
29 views

Showing ads in the specific category and its sub-categories

I would like in each category and sub-category of its own ads to be displayed. I used the in_category function but not displayed Advertising in sub-categories. Please advice.
0
votes
1answer
27 views

CSS preprocessor file messed up after compiled

I'm using LESS for WordPress theme development, but I have a bit of problem that after compiled CSS file mess up. Like this: LESS body { color: white; background-color: black; } CSS body ...
-2
votes
1answer
37 views

Separated Comment from Post

I'm designer with little knowledge of wordpress (newbie >_<) i use Worpress starter theme from : html5blank.com i want to separate COMMENT section from POST section, this still on one single.php ...
0
votes
0answers
50 views

How can I add recent posts to menu like mashable

I would like create a mega menu that uses recent posts for hover state. Like When you hover a submenu you get a list of recent post relevant to that menu item like in Mashable. I I would like a menu ...
0
votes
3answers
48 views

Cant insert wrapper div into index.php

I'm having an issue inserting a wrapper div into my php index file that we're using for the front page of the site. Right now it looks like this: And it needs to look like this: I'm aware this ...
0
votes
0answers
46 views

How to add a class to edit_post_link?

My goal is obtain "Edit" button like this: <a class="post-edit-link btn btn-default" href="{$url}">Edit this</a> The first attempt I was trying adopt was adding before and after params: ...
0
votes
1answer
50 views

Wordpress get_post_meta issue

I'm new to php and was assigned some code to fix within a Wordpress theme, but I cannot figure it out for anything. The code is for the home page of a custom theme and it is supposed to pull the most ...
0
votes
2answers
150 views

WordPress API functions not working at AJAX functions.php call

I am trying to show subcategories of a category in WordPress using AJAX: when I select a main category, there is a call to WP Ajax and the result is used in showing the subcategories. So far, I have ...
0
votes
1answer
41 views

what is do_action(); in wordpress? [duplicate]

Sorry for making duplicate Topic but it is very important to me because i don't understand this topic by looking other related topics. Actually i am in process to build a WordPress theme and i am ...
1
vote
0answers
47 views

Issue with loading mobile specific custom single page layout in mobile

Hello I am in the middle of theme development which has specific layouts for mobile, I built a custom function to detect mobile and load mobile specific layouts in mobile view ports. Here is the ...
0
votes
0answers
6 views

How to fix the warning shortcode function generated by Theme Check? [duplicate]

I searched on the internet but I still don't know how to fix it. I solved most of the the errors in WordPress Theme I am developing except for one WARNING. Please refer on complete error lines below: ...
0
votes
0answers
27 views

Retina support for theme

I am trying to add retina support for my theme and I found a good tutorial at http://code.tutsplus.com/tutorials/ensuring-your-theme-has-retina-support--wp-33430 and this code is working but I ...
0
votes
0answers
18 views

Git deployment with root discrepancy

My client is on WP-Engine. The theme I’ve developed for them is in a private Github repo. When I developed it, I set the root to the theme’s root. So my repo’s root is in wp-content/themes/my-theme ...
0
votes
1answer
54 views

What's the right way to implement functions in footer.php

I have a Wordpress website with a child-theme of 'twentyfifteen' I created. I added a PHP code that changes the footers background depending on the template displayed. This is my code part: ...
-1
votes
2answers
31 views

Image Size wrong during upload

I am currently in the middle of developing the front page for a online store. I am trying to resize the width of the image to expand it across the full width of the page, however the image will not ...
0
votes
1answer
173 views

How to integrate plugin in Wordpress theme

I have read that there are two ways for integrating a plugin on a Wordpress theme. I think the first method is the best; but I do not know exactly how to do it... After copying the plugin to the ...
0
votes
0answers
7 views

Is there any better way to reach get the options value with depth 3

This is how I am getting the option result right now: <?php $options_list = get_option( 'my_custom_fields_options', 'no value exists' ); $practice_areas = ...
0
votes
1answer
32 views

How add built-in textarea in theme development?

How can I add built-in textarea instead simple textarea in Wordpress v4 like when I hit Post -> Add new in theme development? I need to add it to theme options page ...
0
votes
1answer
39 views

How To Customise WordPress Comment Submit Button?

I am trying to customise the output code of <?php comment_form(); ?> At the moment the submit button outputs the following: <p class="form-submit"> <input name="submit" ...
0
votes
0answers
36 views

unzip a folder on specific location and delete the zip file

After the lots of search. I am deciding to post my question here. Basically i want to upload a zip file in my wordpress site from my admin panel. And also extract this file to specific location with ...
0
votes
1answer
46 views

Automatically Add Caption Shortcode to Image with Caption Field Filled In

I am hoping to be able to have the [caption] shortcode automatically get inserted into the post content area when you add in an image that has the caption field filled in. I believe this is supposed ...
0
votes
1answer
28 views

Adding a space between next and previous post links

i've been struggling with this for a while but i can't seem to make it work.So i wanna add a space between my next and pervious post link right now it looks like this : Here's a pastebin of my ...
0
votes
1answer
21 views

How to add next height number in Order Attributes inside the Add new page. [duplicate]

By default, when a new page is added it will be given the next highest number not already assigned to a page.
0
votes
0answers
62 views

Why does the wordpress theme that I edited always rollback to its original version?

This is so weird to me. I'm using wordpress 4.1.1 and GeneratePress theme. I want to change something like header font size and footer content. So, I edited files: ...
-2
votes
1answer
123 views

How to load custom php file in Wordpress themes

I'm just created a website using wordpress and a custom theme for it. This is my theme directory /themes/customtheme/ -index.php -header.php -footer.php -blog.php .... The index.php includes ...
0
votes
1answer
53 views

Theme not showing up

I'm creating a custom theme on a local install on WordPress on Ubuntu. The theme is a separate directory within /themes/ and has both index.html and style.css. It works on other installs. I have made ...
0
votes
0answers
28 views

How do I filter out certain posts from the loop while keeping total number of posts displayed the same?

I'm building a theme where a number of posts would be featured above the cut, while the rest of them would be displayed below. It's fairly easy to filter out the featured posts from the loop - I ...
0
votes
0answers
37 views

How to get value from listbox in TinyMCE

I want to get the value in the listbox but it always return text value (Yes/No instead of True/False). This is my code: onclick: function () { ed.windowManager.open({ title: 'A Grid based ...
2
votes
2answers
99 views

Displaying Widgets

During theme development, I understand how to create basic widgets within the functions.php file. However, when it comes to displaying the widget within a theme, is there a preferred way to display ...
0
votes
1answer
87 views

Pagination fuction in shortcode always displays on top

Pagination function in shortcode always displayed on the top. Please have a look on below code /*-------------------------------------------------------------------------*/ /* Custom Pagination */ ...
0
votes
0answers
60 views

How to make search for posts using get method?

So I am building a WordPress theme for myself to meet my needs, so what I am looking for now is make a search using a get method in PHP. If my URL is something like this : ...
0
votes
1answer
57 views

Next post in category

i tried to make my previous/next to move only for one category,but i can't seen to make it work... http://pastebin.com/kDECBeKE this is a pastebin of my template-tags.php where i have my ...
0
votes
1answer
84 views

How to get DB options format without saving? [closed]

Using Unyson framework. I am getting theme options form data saved to a file. Was able to do that via ajax and JSON.stringify(form values in json format) problem I have is that the form data ...
0
votes
1answer
74 views

Next/Previous post navigation

Hey guys i want to make my next and previous links to work just for a category not all of them togheter,so when you get on the last post from that category to stop,right now it's still going in ...
0
votes
0answers
69 views

Primary Menu Showing All Pages With No Sub-Nav

Developing my own theme and I don't understand why my primary menu is listing all of my pages on a parent level, when I want only 5 parent pages as my menu with each having child pages in sub-nav that ...
0
votes
0answers
56 views

Search form to find custom meta box generated data

I have developed an inner theme plugin, which is a custom meta box that inserts some typed in text to the database and then displays in the application. I followed the example found at this link. Now ...
0
votes
1answer
61 views

get_theme_mod not pulling css colors into header using wp_head

I've had an issue with the theme customizer. On this page http://codex.wordpress.org/Theme_Customization_API you can go to: Part 2: Generating Live CSS And you'll see a way to fetch the settings ...
1
vote
1answer
31 views

Why is the Page Template dropdown menu using the wrong file name?

This is strange. I have a file, page_market.php, that is named "Market Main Page". It WAS being used when I chose that page template, but now it is not working at all. Instead, it looks like I'm ...
-1
votes
1answer
28 views

How to work email subscribe in WordPress?

There are many website those are using new WordPress theme as email subscribe option, like the below image http://postimg.org/image/6kh8b1wfb/ and I wish I will add this subscribe option in my ...
0
votes
1answer
117 views

How to Get Current Custom Post Type Associated Taxonomy Term

I have a single.php file like below <?php get_header(); ?> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); echo '<div">'; ...
0
votes
0answers
33 views

Why Wordpress gets old templates code instead of the last updated ones

I recently finished building my WP theme (child theme of twentyfifteen). My friend started updating content and accidentally added content to a page which don't have a function that gets and displays ...
0
votes
0answers
6 views

How do I default the widgets in my dynamic sidebars? [duplicate]

Similar to a previous question that was not technically answered: I have a custom theme with dynamic sidebars and custom widgets. I would like to set what widgets are in those sidebars by default. ...
2
votes
1answer
70 views

Create self-populating menu and add extra divs to the menu layout

What I'm trying to achieve: A menu with one level of sub-menus: PAGE 1<br> --- Page 1 sub-page 1<br> --- Page 1 sub-page 2<br> PAGE 2<br> --- Page 2 sub-page 1<br> --- ...