FAQ Database Discussion Community


How can I set other temlates/view for posts in specific category?

php,wordpress,wordpress-theming
I have single.php file and it set the default template for my posts. How can I set more views/templates for posts in specific category? I saw that there are plugins, but plugins aren't up to date. Can i do this without any plugins? I know how I can do this...

Duplicate get_header()

php,jquery,wordpress,wordpress-theming
Duplicate get_header() Problem!!! I insert, using jQuery, single-{custom-post-type}.php into an ajax container in my front-page. My single-{custom-post-type}.php use the wp function get_header() and my front-page is using get_header() to, so everything is already loaded. So when I load my custom posts It crash. If I remove get_header() from my single-{custom-post-type}.php...

Why my page is too wide when using RTL?

css,wordpress,wordpress-theming,right-to-left
This is a WordPress issue and I'm asking this question here because I believe it is a CSS problem. I'm using Wordpress and a theme named ShootinStar but I have to do my website in an RTL language. The theme supports RTL though. Everything is perfect when the language of...

Embedding soundcloud link on featured image post to launch mp3 player on

wordpress,wordpress-theming
So I've been searching the web and I can't find a good answer on how to have a featured image with a play button, once I click the play button it launches a mp3 player built on wordpress site. Much like this site -> indieshuffle.com Does anyone know how to...

WordPress widgets: how to change the automatically created “style” attribute of the surrounding HTML

wordpress,widget,wordpress-theming
I have copied the twentythirteen Wordpress theme to dive into Wordpress development. I want to change the look of my footer, so I used the Firefox inspector to play around with it. The widgets in my footer sidebar have the following HTML around them: <aside style="position: absolute; left: 0px; top:...

Wordpress - next_post_link() not filtering by post_type showing nothing

php,wordpress,wordpress-plugin,wordpress-theming
I'm trying to add previous and next links to my portfolio posts. I have various custom posts, but I only want to link to my portfolio custom posts. I have been looking in the documentation and have tried using this in the wordpress loop <?php next_post_link('%link', 'Next post in category',...

Can I set wordpress theme via code

wordpress,wordpress-theming
I have been working on wordpress for a while. I know that we can manage themes via the admin panel and the selected theme and its configuration details are stored in the database. Is there any way I can set the theme via my wordpress code?...

Wordpress - how to show links to 'private' pages in wp_nav_menu?

php,wordpress,wordpress-plugin,wordpress-theming
In my WordPress site I have a requirement to show private links in the main navigation (via wp_nav_menu) even if the user isn't logged in (I just need to show the link, not change who can view the actual content). I can do this elsewhere, using wp_list_pages and specifying the...

Wordpress - import database from the old theme to the new theme

php,wordpress,wordpress-theming
I have a wordpress site which is live and running. I want to change the theme but I'm new to wordpress and what I'm trying to do is that I have a new theme setup locally(I want to play around with it before putting it live) and I want to...

WP_Query causing Wordpress dashboard to disappear

php,wordpress,wordpress-theming,wordpress-loop
For some reason after I use a while loop inside an if statement after creating a new WP query object, my dashboard disappears. <?php $args = array( 'post_type' => 'info' ); $query = new WP_Query( $args ); ?> <?php if( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>...

how to customise the wordpress description

php,css,wordpress-theming
Hi everyone would like to ask if it is possible to customise the WordPress description. For example on my local site the description is Blah | Blah | Blah Is it possible to have each "blah" a different colour using code or would I be have to write out a...

Override CSS that's causing logo to disappear when I scroll on Wordpress theme?

css,wordpress,wordpress-theming
I am working on a wordpress theme, Harmonic, and I've gotten almost exactly the way I want. There was an error in the theme where the nav bar would flicker away then appear again when I scroll, and I was able to change it to position: fixed. The current issue...

How to get the Clicked ID and Output that ID Data in another Page in WordPress [closed]

php,wordpress,themes,wordpress-theming,web-deployment-project
I am creating a WordPress Theme ,I created Single.php now in single.php i have a Button Called Watch Now . When Watch Now is Clicked it gets the ID of the Current/Clicked Post dynamically ! I used WP function (get_the_ID) now when it goes to another Page (receive.php) i want...

We need to output this as a static site to be hosted on the clients servers [closed]

php,wordpress,wordpress-plugin,wordpress-theming,wordpress-mu
My Client is willing to follow an unusual approach and wants to control the back-end through WordPress internally but output it as an static one on the live server. I this possible? Well I think it is, can anyone suggest me how should I do it or send me any...

How can I change the width of a widget in Responsive theme?

php,wordpress,wordpress-theming,content-management
The default footer widget in the responsive theme is 1/3 of the total screen width. How can I make it wider to 100%?

Ajax call add current url in wordpress

jquery,ajax,wordpress,wordpress-theming
When I am trying to perform an ajax call using jquery in wordpress js file, it automatically redirects to current path and then appends my custom path so I can't redirect my true URL. Here is my code: var path_test = document.location.hostname + '/wpcontent/themes/expression/imagecount.php'; var path; $.ajax({ url: path_test, type:...

How to add demo content in avada wordpress theme?

wordpress,wordpress-theming
I need to create wordpress site's blog page which can be directly done by adding demo content of avada wordpress theme that i know but i don't know how actually it can be possible. so please guide me about this.

Wordpress loop for posts inside another loop for pages - one page website

php,wordpress,wordpress-theming,wordpress-loop
I made landing page(onepage) in WordPress. I display all pages in wordpress loop. index.php: <?php query_posts(array( 'post_type' => 'page', 'posts_per_page' => '-1', 'order' => 'ASC', 'orderby' => 'menu_order' )); $tpl_parts = array( '5' => 'about', '7' => 'team', '76' => 'tech', '81' => 'services', '101' => 'contact', ); ?> <?php...

woocommerce - checkout fails/doesn't work

php,wordpress,wordpress-plugin,woocommerce,wordpress-theming
My woocommerce checkout is showing and up till this morning was working fine. But now when I try to submit the form I get this message: "We were unable to process your order, please try again". I haven't changed anything in the settings or plugins. I have updated woocommerce recently...

wordpress permalink reload page and not redirect to post

php,wordpress,wordpress-theming,wordpress-loop
I have WordPress onepage and I displayed posts from specific category in one of page. When I click to link with permalink href, I am redirecting to home page with added /post-name/ to url, but no to post page. I have index.php and single.php. I have this index.php: <?php query_posts(array(...

Calling a page template which is in subdirectory

php,html,wordpress,wordpress-theming
I have a static website in html which is multilanguage. So, I have created several subdirectories depending on the language is selected, this is, "lang" folder for the languages and "fr" folder for francais and "es" for spanish. However, I don't know how to call my template page in WordPress...

CSS - prevent menu from breaking onto second line

css,wordpress,responsive-design,wordpress-plugin,wordpress-theming
The menu breaks unto a second line when the browser is at about 1180 width. How can I prevent it from doing that? http://goo.gl/5UpJSv...

Wordpress - Custom Header

php,html,css,wordpress,wordpress-theming
Im trying to get a custom header to my wordpress theme. $args = array( 'width' => 1920, 'height' => 800, 'default-image' => get_template_directory_uri() . '/images/header.jpg', 'uploads' => true, ); add_theme_support( 'custom-header', $args ); Added that to my functions.php and want the default-image to be the image that show if its...

Query based on custom field

wordpress,wordpress-theming,advanced-custom-fields,wpdb
I have made custom fields using advanced custom field plugin. It has a field name school which includes choices such as arts,education,engineering. Now my problem is how can i query only those post who field is arts using wpdb. sincerely i don't know wpdb works. . Any help will be...

How to display page content in custom theme in wordpress?

php,wordpress,wordpress-plugin,wordpress-theming,content-type
I have been searching for this a few hours now and I might just overlook it or asking the wrong questions in google, but I would really like to know how I can get the content I type in e.g. the About page in the WordPress dashboard, to display on...

Dynamic Tile based layout

jquery,ajax,wordpress-theming,grid-layout,html5-animation
Hello I would like to make a layout where by tiles (1x1, 1x2, and 2x2) fill a grid, and when you click one of the tiles it expands to a larger window and fits into a larger area within the tiles surrounding it. Here is an example of what I...

Wordpress Site: background issue

html,css,wordpress,wordpress-theming
First off, please forgive me if this isn't detailed enough. I am a graphic designer with minimum html/coding knowledge. I am designing a site using WordPress. I put in a pink pattern background and it works well on the homepage. But if you click on the Print Design page for...

Wordpress add custom page without adding template

wordpress,.htaccess,wordpress-theming
I have a custom page called settings.php in my theme folder, I don't want to use it as page template. How can I reserve a URL let's call it mysite.com/settings, so this url will load settings.php page for me? ...

Wordpress adding theme option [closed]

php,wordpress,wordpress-theming
I created a theme, and the theme have social icons in the header, now i want a theme feature, where administrator can link their profile to social icons that I have on my theme. I researched on this, but am still clueless, till now I am just able to add...

Wordpress Core Data Validation Functions not working

php,wordpress,security,wordpress-theming,input-sanitization
I'm developing a Custom Theme for a Wordpress site and I want to use Wordpress Core Data Validation Functions to validate the info from some forms. Every time I try to use the sanitize_text_field() function I get this error: Fatal error: Call to undefined function sanitize_text_field(). I've read many posts...

Showing all posts from a specific category

wordpress,wordpress-theming,wordpress-loop
I want to create "view all posts" link to show all posts of a specific category in wordpress. But as a newcomer I can't handle it. Can you tell me to create that type of link, which code should I write in functions.php file and which code should I write...

Using front end frameworks with a Wordpress site?

wordpress,user-interface,web,wordpress-theming
I've been tasked with modifying the frond end of a Wordpress site, which is something I have not done before. I was first thinking of using Handlebars an Bootstrap, but I'm not even sure that will even work with the Wordpress framework. If those don't work, what would be a...

How to work WordPress functions and database [closed]

php,wordpress,wordpress-theming,wordpress-plugin-dev,wordpress-loop
wordpress experts. I'm searching some help. I know php as well as javaScript and ajax. I have worked a few days with wordpress. But I want to know core functionality of wordpress that means how wordpress functions and database work. I know about codex. But I am not understanding from...

How to Get Current Custom Post Type Associated Taxonomy Term

wordpress,wordpress-plugin,wordpress-theming
I have a single.php file like below <?php get_header(); ?> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); echo '<div">'; the_content(); echo '</div>'; } // end while } // end if ?> <?php get_footer(); ?> now I need to get Current Custom Post Type Associated Taxonomy...

JS not working after doing custom css on Wordpress Site

javascript,jquery,css,wordpress,wordpress-theming
I am currently in the process of developing an online shop via wordpress. Everything was working fine, now I wanted to give my page a custom border( inverted round corners) and found the css code for it as seen here: css: body { background-color: #fff; } .wrapper { overflow:hidden; width:200px;...

Wordpress shows PHP code instead of menu content

php,wordpress,wordpress-theming
I've encountered a strange problem with menus after moving WordPress from local environment to a live server. On my local server, the menus are displayed correctly, while on the live server, there is only a piece of the menu code shown instead of the actual menu. (Basically, it cuts off...

WordPress Theme help setting a fixed header + menu

wordpress,wordpress-theming
I'm trying to get the header and menu below it to be fixed/sticky and always be visible but can figure out how to do both. http://goo.gl/rBxqUm...

wp_enqueue_style places the output CSS directly in the HTML

php,html,css,wordpress,wordpress-theming
I am using wp_register_style and wp_enqueue_style to add stylesheets to my custom theme. Locally it works as expected, however, on my staging machine instead of adding a link to the CSS file I have specified, it places the CSS directly in my HTML, like: <style id="titilium-font-css" media="all"> /* CSS styles...

WordPress issue with inputs inside divs on ContactForm7

php,html,css,wordpress,wordpress-theming
So this is my first time using StackOverFlow and I looked for a solution for this problem everywhere, but none of them were helpful. I am currently editing a page on a WordPress blog that has a form. So, to make it easier to handle, I separated the fields in...

Wordpress Custom Theme has mod-pagespeed no defer 404 error on page reload

wordpress,apache,wordpress-theming,mod-pagespeed,underscores-wp
ISSUE: On page reload of a Wordpress 4.1 custom theme, I get the error "GET ... /%3Cscript%20pagespeed_no_defer= 404 (Not Found)" in my console, and on the web page it shows script. If I refresh a few more times, it goes away, then another refresh and it returns. GOAL / QUESTION:...

Pagination fault in custom post type archive page

wordpress,wordpress-plugin,wordpress-theming
I create ad custom post type register_post_type( 'videos', $args); and custom taxonomy for that register_taxonomy( 'video_category_categorie', 'videos', $args ); Maximum number of post displayed is 2 per page. Via word press backend in archive-videos. php i write the for displaying the post from a specific taxonomy ( taxonomy item id...

An error occured while installing customizr theme on wordpress

php,wordpress-theming
When I was installing the theme customizr I got this error. Now I am not able to login to my website. Whenever I login it gives following error: URL of my website is www.nileshaswani.webuda.com you can check it out. PHP Error Message Warning: require_once(/home/a6084419/public_html/wp- content/themes/customizr/inc/init.php) [function.require-once]: failed to open stream:...

How to get rid of scroll bars/arrows in Wordpress, when using font style called 'Pre'

html,css,wordpress,wordpress-theming
When on Wordpress I use font Pre, instead of seamlessly showing up formatted as Fixed space font, which I was going for, I get fixed space font inside rectangular space area, colored in gray color to accentuate itself it has horizontal and vertical scroll bars on right and bottom, with...

Resolve javascript conflict with parent theme on wordpress child theme

javascript,ajax,wordpress,wordpress-theming,buddypress
I've built a child theme of Divi Theme to use with Buddypress. So far so good, except for a script conflict on commenting buttons. The theme load a javascript (js/custom.js at 2642:2662) with the following function: $( 'a[href*=#]:not([href=#])' ).click( function() { if ( $(this).closest( '.woocommerce-tabs' ).length && $(this).closest( '.tabs' ).length...

Comments are empty in WordPress

php,wordpress,wordpress-theming
Despite that I have added the <?php comments_template(); ?> to single.php it seems like it's not working! I'm note sure, but why are the comments in the list of comments to be approved empty? The fields for name, email and URL and the content are empty for each comment. Should...

About theme option in wordpress

wordpress,wordpress-theming,web-deployment-project
I am learning wordpress by myself. I have a question about theme option for theme development project. I want to know that is it very important to create a theme option system in theme development project? Is it compulsory?...

Wordpress: index.php vs home.php?

wordpress,wordpress-theming
Im reading this tutorial Wordpress theming about converting an html site to WP, and it says WordPress has a hierarchy of templates. None of them are called index (that name is reserved) so we need to rename our index file to something else. So as per tutorial I renamed index.html...

In what order should a new wordpress theme developer start inspecting the files in default themes? [closed]

wordpress,wordpress-theming
I've already built a simple theme for my website on Wordpress, but running automated tools like Theme Checker showed me my theme doesn't have many important functionalities. After suggestions from many developers on multiple websites, I decided to learn it from the default TwentyTen theme. To the professional developers, in...

Wordpress - Edit dashboard based on user id NOT user role

css,wordpress,user,wordpress-theming
Is there a way to edit the dashboard based on the user ID? I know this is relatively straight forward when targeting a user role, but how about ID? For a working example, something along the lines of changing the admin menu background color for the user ID of 7....

What does internally hosted means

php,wordpress,wordpress-plugin,wordpress-theming,wordpress-plugin-dev
I have built a site in WordPress and the client wants to control things through WordPress but he wants the live version to be static for which someone told me to use StaticPress plugin. He would like to have the WordPress version internally hosted and the live version would be...

Using Kenb (Ken Burns) Slider on WordPress - How to make slides load in random order

javascript,wordpress,slider,wordpress-theming,slideshow
I'm using the Kenb effect slider on WordPress. I would like the slides to load in a random order. Is that possible? I think this is the relevant js below. You can also see the site at: http://goo.gl/yBGZAk (function($){ $.fn.kenburns = function(options) { var $canvas = $(this); var ctx =...

How to change gallery of template in goodlayers

wordpress,wordpress-plugin,wordpress-theming
How can I change the gallery in wordpress for home page of http://****/ ...

Undefined variable in a class when I have defined it

php,wordpress,wordpress-plugin,wordpress-theming,wordpress-plugin-dev
Coding a new version of my own Wordpress plugin, this time using OOP to make it more readable for other collaborators. It is based on Wordpress Plugin Boilerplate and also Cuztom, to facilitate the creation of Custom Post Types. My CPTs are created, they update well. Although I can call...

Better Search box for wordpress

wordpress,search,wordpress-plugin,wordpress-theming
Please take a look on this WordPress theme, when you click on search icon, a search box appear in the middle of page with a cool effect. I want to add this to my WordPress site. I have looked on google but still no luck, Please suggest me a plugin...

Complete WordPress custom post type category tree

php,wordpress,loops,wordpress-theming
I have post type called 'sisallot', which has 5 subcategories. Lets call these subcats s1,s2,s3,s4,s5. Every subcategory has a couple of subcategories (these would then be ss1,ss2..etc.) and these ssubcategories has the final posts to get. I've added first level subcategories to my navbar. The question is: How can I...

wordpress posts loop by category name

php,wordpress,wordpress-theming,wordpress-loop
I am kinda unlucky to find a proper solution in order to display posts by their category. I made a page template that should be supposted to be used in order to display posts by category. Lets say there is a page "Cats" and page "Dogs" and the same named...

Wordpress body_class() loads single post css on a blog page

css,wordpress,wordpress-theming,blogs
On my blog landing page the body_class() injects the blog style (http://madgreens.com/blog). But, when a blog page loads, the single-post style is injected (http://www.madgreens.com/blog/2015/02/chicken/). I did upgrade 4 plugins recently but have moved them to a folder 'plugins-temp' until I sort this out. Is there a way to force Wordpress...

CSS: Animate an element on hover

jquery,css,wordpress,wordpress-theming,css-animations
I'm still growing in web development, so I hope this doesn't come out too "noob". I have a logo on a webpage I'd like to animate using a css library when its hovered on. I'm using Dane Den's Animate.css library to implement the animations and I already enqueued the css...

Wordpress multiple images upload via front end, to a custom post type's post meta field

wordpress,wordpress-plugin,wordpress-theming,wordpress-loop
Please any one know how can i do this .I have a form in my site front end ,when filling the required field in the form and submit then these entries are saved as a new post in custom post type . For this i use $post = array( 'post_title'...

How to change custom admin menu?

wordpress,function,wordpress-plugin,wordpress-theming,wordpress-plugin-dev
I have created an admin menu in wordpress with these functions: function list_menu(){ add_menu_page( 'My Plugin', 'My Plugin', 'administrator', 'mylist', 'list_page', plugins_url('favicon.png'), 24); } add_action('admin_menu', 'list_menu'); function add_menu(){ add_submenu_page( 'mylist', 'Add New', 'Add New', 'administrator', 'add_new_page', 'add_page'); } add_action('admin_menu', 'add_menu'); But it create a menu with duplicate value in the...

making stackable two columns in WordPress

css,wordpress,responsive-design,wordpress-theming,responsiveness
I'm working with a theme that is supposed to be responsive but when the two column shortcode is used and a page is viewed on smaller browsers or mobiles, the columns shrink to fit the browsers width side by side instead of stacking. It looks awful on smartphones, I am...

Remove featured post image inside single post page

wordpress,wordpress-theming,wordpress-loop
How can I remove blog post feature image inside the blog single post page from the top, in the "Intution" Wordpress theme ?

Wordpress Custom Post Type Search

wordpress,wordpress-plugin,wordpress-theming,custom-post-type,wordpress-theme-customize
I have a WP installation with a menu/restaurant theme that adds a custom post type for "food". "food" has a title and an excerpt field it doesn't have the regular "content" field. It seems that the default WP search facility will search in the title and the content fields but...

Wordpress 2014 child theme setup

php,wordpress,wordpress-theming
i am having trouble activating a child theme for a wordpress 2014 theme. I created a folder twentyfourteen-child. I have a style.css with 1 /* 2 Theme Name:Twenty Fourteen Child 3 Version: 1.0 4 Theme URI: link 5 Description: A basic starter child theme for Twenty Fourteen 6 Author: Tim...

Add pagination to this Wordpress Home

php,wordpress,loops,pagination,wordpress-theming
I Guys! I'm working on a pagination for this theme homepage. The original code is: <?php /** Blog **/ $display_count = get_theme_mod('wpex_home_blog_count', '30'); $wpex_query = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => $display_count, 'no_found_rows' => true, ) ); if ( $wpex_query->posts && '0' != $display_count ) { ?> <div...

Overriding plugin functions from a theme

wordpress,wordpress-plugin,wordpress-theming
There is a plugin that has all of its presentation functions declared so that they can be overriden. I.e.: if (!function_exists('show_thing')){ ... } How should this be done? I tried declaring the function in my themes functions.php but it was already declared by that point of execution. If I create...

How to update premium WordPress themes?

wordpress,wordpress-theming
I have a question about premium themes in general, not a specific one. When you need to update a premium theme, a lot of websites suggest that you deactivate and delete your existing copy of the theme. Then you're supposed to upload and activate the new version. I'm not a...

Can I Only Load a Plug-in on Front-end of Wordpress?

wordpress,wordpress-plugin,wordpress-theming
I'm in a spot where my Constant Contact plug-in is triggering a problem on the Wordpress back-end and causing issues with the WYSIWYG editor. I've had this type of issue countless times before, and I'm just wondering if there's a way to ONLY load particular plug-ins on the FRONT of...

Updating themes built using underscores

php,wordpress,wordpress-theming
I'm a starting out wordpress theme developer and am contemplating using the underscores starter theme. The issue I seem to have in my head is that I will be building themes for intended for general public rather than clients, so I will need to come out with new theme updates...

Insert link/edit link not highlighting in WordPress blog theme

wordpress,hyperlink,wordpress-theming
I have newly created a free WordPress blog account and started writing my first post. What I notice is that the insert link/edit link never gets highlighted, which means none of the external links can be inserted. I tried changing several themes and the result is the same. I have...

get_posts - orderby desc wrong order

wordpress,wordpress-plugin,wordpress-theming
In my WordPress plugin I am getting posts using the following: $args = array( 'post_type' => 'wpplugin_pp_order', 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'ID' ); $posts = get_posts($args); The problem is the result is returning like so for the post_id: 3000 3001 3002 3003 2999 2998 How can...

In woocommerce how to add Participant List on checkout page and show in order detail page

wordpress,wordpress-plugin,woocommerce,wordpress-theming,wordpress-loop
How to add list of participant in check out and show in order detail page. using function and wordpress action and filters

Is there a way to wrap UL sub-menu to div? (In wordpress)

wordpress,navigation,wordpress-theming,html-lists,wrap
Here is my problem is there a way to wrap wordpress UL submenu to div? Wordpress output is this: <ul> <li>link 1</li> <li>link 2</li> <li>link 3 <ul class="sub-menu"> <li>Sub-link 1</li> <li>Sub-link 2</li> <li>Sub-link 3</li> </ul> </li> </ul> And I need to get this: <ul> <li>link 1</li> <li>link 2</li> <li>link 3...

How do i redirect non logged in users Wordpress

php,wordpress,file,wordpress-theming
I am looking to redirect users who are not logged in on any page of my WordPress website to a /welcome page which will have a sign up form on. This is pretty essential as it is a small social networking site. I am also trying to do this without...

Wordpress Theme with page slider

ajax,wordpress,themes,wordpress-theming
I want to create a theme in which the website page slides out and slides in. I already have the website link which is not developed in wordpress. I am trying to create the exact same theme for the wordpress the functionality of sliding the page out and page in...

Center items in list (CSS)

css,wordpress,wordpress-theming,html-lists
I need to center the items on a list of my social-media menu (the 4 icons under the title on the sidebar). I got to made them distribute evenly (each item width is 25% since I have 4), the "ul" is displayed as table. However, the icons inside each "li"...

WordPress Widget creation helper

wordpress,wordpress-plugin,wordpress-theming
Is there any helper for creating WordPress widgets? I fount this https://github.com/sksmatt/WordPress-Widgets-Helper-Class but it have not been updated 3 years. Is there any good solution?...

Save the output image into a different directory, with a new filename and extension [duplicate]

javascript,php,wordpress,image,wordpress-theming
This question already has an answer here: creating an image in php, display works, saving to file does not 3 answers Let say I have this code in my "image.php" file that will create a new GD image stream and output an image: header ('Content-Type: image/png'); $im = @imagecreatetruecolor(120,...

Questions regarding wordpress

php,wordpress,wordpress-theming
I am a developer who has never used wordPress before and just had a couple of questions about creating a custom theme To create a specific look to a website do I create a static design then inter grate it with wordpress and add the dynamic content where it needs...

Including header and footer to a custom location

wordpress,wordpress-theming
Is possible to include a wordpress header into a php file which is located in folder e.g.: wp-content/uploads/custom.php ?

How To Initiate The (Redux Framework Builder) Generated Admin Folder?

php,wordpress,frameworks,wordpress-theming,redux-framework
I am trying to include the Redux Framework in my theme. I decided to try the online builder of Redux Framework: http://build.reduxframework.com/ to generate the necessary files for me. The builder of Redux provides two options: (1). To generate and export the admin folder. (2). To generate and export a...

WordPress pagination doens't work on home

php,wordpress,pagination,wordpress-theming,wordpress-loop
I created a WordPress template file with latest posts and pagination. But when I set this page as the home page, the pagination wont work and it'll display the first page. As a standalone page it does work. Strange! Any thoughts about this? <?php get_header(); ?> <div id="primary" class="content-area clr">...

Wordpress Video Align middle not working

html,css,wordpress,wordpress-theming
I have a problem with one WordPress theme. This is URL of my site and if you scroll down to the iFB section then you will see a video there. I have entered this code to put it to this page <iframe src="https://www.youtube.com/embed/KO2hFoKDh18" width="560" height="315" frameborder="0" align="middle" allowfullscreen="allowfullscreen" ></iframe> but...

Absolute path of localhost coming after migrating to server in wordpress

wordpress,wordpress-theming
My website is http://clg2.givemyspace.com/ I have migrated from localhost to server but all the images are pointing to localhost. How can i fix this....

How to upload wordpress theme to sub domain

wordpress,xampp,localhost,wordpress-theming,subdomain
In my localhost(xampp) wordpress themes are installed. I activate one of them And create user name and password for the wp-admin. And I backup database and wordpress site and upload it to subdomain(live site). After upload all content will load without CSS style-sheet. And wp-admin also not working. And url...

Two questions about post_type function in wordpress

php,html,wordpress,wordpress-theming,custom-post-type
I'm making a child theme from this theme (limo) and I am trying to do two things without success, so here's my questions: How can I get a permalink from a post_type? As you can see on this demo (the "Our Works" part), I would like to get the link...

Adding active class to first item in wordpress loop

php,wordpress,wordpress-theming,wordpress-loop
I created slider in wordpress on category and post thumbnail. I tried to add active class to first item in my loop, but loop show this class in all items. How can I fix that ? Here is my loop: <div class="carousel-inner" role="listbox"> <?php $c = 0; $class = '';...

(Wordpress) Image From Child Theme style.css Not Found

css,wordpress,wordpress-theming
Basically, there should be a checkbox image next to each service, loaded from the child theme's style.css using the "content" property. This is what the css looks like from the child theme's style.css: content: url(../clos/images/checkboxes.png) left top no-repeat !important; Except the image is in that folder and in a child...

Wordpress do_shortcode function implementation after loop

wordpress,wordpress-theming,wordpress-loop
I am doing a project on wordpress theme. Wordpress has a function call do_shortcode but when I implement it, the code is not working. The output of the $metagallery is [Best_Wordpress_Gallery id="1" gal_title="Gallery 1"] Why isn't it working when I echo using the function do_shortcode? <?php $metagallery = get_post_meta($id, '_jdev_custom_meta',...

How to group elements in the adminpanel (custom type posts)

wordpress,wordpress-theming
Good afternoon. Prompt huk for group the admin dashboard to submenu. As it looks now As I want that it looked |Cyprus (main) |-->News (sub) |-->Cities (sub) |-->Villages (sub) |-->Stories (sub) ...

custom WordPress tag.php page .. trying to get tag info

wordpress,tags,wordpress-theming,wordpress-theme-customize
I'm creating a custom tag.php page for a WordPress theme. I need to get the name, id and slug for the tag page that I am one (i.e. www.site.com/tag/fruit/ )... I see tons of examples online about how to list the tags for a page/post, but none that say how...

How to Get Array of Stylesheets and Scripts in wp_head & wp_footer

php,wordpress,wordpress-theming
We need to be able to be able to fetch an array of all stylesheets/scripts loaded by the wp_head/wp_footer functions both using PHP from the functions.php file in the WordPress theme. Is there a way to do this? My reason for doing this is we have a custom PHP script...

Wordpress Developer Custom Background Options

php,html,css,wordpress,wordpress-theming
I've been reading the WordPress codex on adding custom background options, like in this example $defaults = array( 'default-color' => '', 'default-image' => '', 'default-repeat' => '', 'default-position-x' => '', 'default-attachment' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_theme_support( 'custom-background', $defaults ); The generated output...

Wordpress page can't continue due to this error

php,css,wordpress,wordpress-plugin,wordpress-theming
I just faced this problem recently, I don't what causes it . But I need help fixing it. The error are : http://www.udesign.my/aaf4/wp-admin/admin-ajax.php?action=woocommerce_checkout Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://fonts.googleapis.com/css?family=century+gothic+:300,400 Failed to load resource: the server responded with a status of...

Wordpress custom post types for different styled paragraphs

php,wordpress,wordpress-theming,custom-post-type,custom-wordpress-pages
My homepage has content that look's something like: <section id="about"> <p class="quote"> </p> <div class="text"> <h2></h2> <p></p> </div> </section> <section id="about-photo"> <div class="image"> <img src="" alt=""> </div> </section> <section id="mission"> <div class="text"> <h2></h2> <p></p> </div> </section> I was wondering whether the way to reproduce this structure in a CMS would...

Wordpress: Adding a Custom HTML file

javascript,html,css,wordpress,wordpress-theming
A friend asked me to create a webpage for their wordpress website. I've created the page using raw HTML, CSS, and Javascript. However, when I log in to their wordpress account online I cannot figure out how to upload the file or even make a link to it? Help would...

How use theme's function into plugin's file in Wordpress

wordpress,wordpress-plugin,wordpress-theming
I am building a simple plugin of wordpress, and trying to use theme's function into plugin's file, but it is saying "Call to undefined function", while that function exists in themes.php of current active theme.that function is in use in theme's files but can't accessible in plugin's file, can anyone...

Get Theme and Wordpress version details via API

wordpress,wordpress-theming,wordpress-plugin-dev
wordpress gives API for all plugins including change log , version , details, screenshots..etc in http://codex.wordpress.org/WordPress.org_API For example https://api.wordpress.org/plugins/info/1.0/BuddyPress Same way themes and wordpress every version i need to get these details. i have tried with https://api.wordpress.org/themes/info/1.1/ and it shows nothing and i do not know where to modify this...

How to add stripslashes to get_option()

regex,wordpress,wordpress-theming,sublimetext,stripslashes
Hy, I created a WordPress Theme using a lot of custom options. While saving the options in the backend amongst other things I'm adding backslashes before characters that need to be escaped. Such as ' and ". Now I need to remove them before displaying them on the frontend. The...

Wordpress not applying template to blog page

html,wordpress,templates,wordpress-theming
I can't figure out what I'm doing wrong... I have built a theme for my blog that worked on my local server(using mamp) when I was building on that. Since then I've moved my site online but now the template for the blog doesn't get applied to the blog page....