0
votes
0answers
10 views

Meta description ellipsis [duplicate]

I have a function that puts a meta description in my theme's <head>. It works well but I have a small issue. It just cuts off words in the description once it reaches the 160 character limit. I ...
0
votes
1answer
38 views

List Categories of the Parent Category of the Current Category

So, let's say I have this structure of categories I. Super Cat A i. mini cat a ii. mini cat b iii. mini cat c I. Super Cat B i. mini cat a ii. mini cat b iii. mini cat c This code: <?php ...
0
votes
1answer
43 views

Proper way to use plugin functions in functions.php

I just ran into an annoying problem on one of my WP sites. I'm using the qtranslate plugin and in the functions.php of my theme, I access some of that plugin's functions. Now, it seems that ...
0
votes
1answer
45 views

Declare a function before plugin does on the theme functions.php file

I'm working with a plugin that declares a function using this format: if (!function_exists('ABdevDND_get_current_post_type')){ function ABdevDND_get_current_post_type() { ... } } I'm ...
-3
votes
1answer
50 views

Adding function to function.php error 505 [closed]

Whenever I try to edit the function.php file of my theme. I get an 505 Error, no matter what function I add it will always give me that error.
0
votes
1answer
91 views

How to load jQuery in the footer - nothing works for me

I tried all the solutions I found on the internet, including the ones I found here, but nothing works on my theme - jQuery always load in header. I try to use the one from Google, but I would be happy ...
0
votes
1answer
84 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() { // ...
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
97 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
1answer
91 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
2answers
52 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: * ...
1
vote
1answer
418 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 ...
0
votes
1answer
98 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
0answers
40 views

Wordpress javascript call functions?

wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call $(document).ready( function($) { $("html").niceScroll(); } ); ...
0
votes
1answer
46 views

How do I preserve changes to a theme's functions.php across updates?

I'm using a theme called "Pinboard", version 1.1.0. I made some edits to the theme's functions.php in order to display FontAwesome icons before archive titles. For instance, if you're browsing the ...
0
votes
0answers
392 views

Twenty Fourteen Customization: Link Post Formats

A solution for this issue for the previous default theme, Twenty Thirteen, was found by me here. It's perfect for what I'm trying to do: set my own desired URL as the link in the title, rather than ...
0
votes
1answer
57 views

get_template_directory adding FTP root folders in urls

I am creating a theme, and now I am adding some functionality for my custom post type, such as different metaboxes in post page, extra post config page. It seems when I try to get the sites theme ...
2
votes
3answers
131 views

Where does function_exists() look to decide whether a function exists? [closed]

The documentation says: Checks the list of defined functions, both built-in (internal) and user-defined, for function_name. ( SOURCE: http://php.net/manual/en/function.function-exists.php) Does ...
0
votes
2answers
138 views

How does child theme functions.php work with parent theme functions.php? Is it like CSS? [duplicate]

I am looking for help on understanding how child themes and parent themes functions.php work. I know with CSS, the cascade overrides CSS declared earlier in the style sheet. It is my understanding ...
0
votes
1answer
61 views

Displaying Slider in Front Page (home) using Customizr Theme

I am using Customizr Theme on my website, and rendering its' front page, using a Static Page. Also I have two sidebars (left and right). I used the static page, because when I put the slider it will ...
0
votes
1answer
43 views

Function that outputs second theme url

I have a multisite and need a function (added to functions.php) that will get the template url of the second theme (probably by name or other identifier)? Example: theme-1 (used by main site) ...
0
votes
2answers
115 views

How can I assign separate stylesheets to different pages?

I am trying to figure out how to assign a seperate stylesheet for different pages? I wan't to use the same stylesheet for my front page, and page template and a different stylesheet for my blog and ...
0
votes
1answer
38 views

How to make sure relative URL works when site is not on root domain?

I just tried installing my theme on another WP install that lies in a subdirectory of the domain. I never really thought too hard about subdirectories, but it does happen so I know I need to change ...
0
votes
1answer
51 views

Is there an error in get_the_tag_list()?

I'm using the theme TwentyThriteen1.0 for my WordPress blog. I recognized that the tags in the meta-part of an article are not separated by a comma. I had a look at the function ...
0
votes
1answer
60 views

Hook specific functions if on a specific admin page

I am having a problem with my theme's options panel and a plugin. Apparently they don't get along very well. Anyway, I need to hook 3 functions on a specific page when I am in the admin panel. More ...
0
votes
1answer
98 views

Can't change theme name

I am developing a theme and it currently has no theme information. Right now it is pulling it's name from the theme folders name and the "Author"is anonymous. I tried changing it by adding code into ...
0
votes
2answers
291 views

Page Template Dropdown For Custom Post Types

I am using the following code to create a dropdown on the edit post screen which will allow users to choose page templates for the post type. The code is working but when I try using it multiple times ...
0
votes
1answer
53 views

Additional Sidebar

Hi I wanted to create extra sidebar in my theme and I am not sure if what I did is correct. In my theme functions.php I found this function: function blankslate_widgets_init() { ...
0
votes
0answers
54 views

Using jQuery Effects in Theme Template Files

Im currently working on a child theme, creating a single-*.php file for one of my custom content types. The end result is that it will be using some jquery for links generated on each single page of ...
0
votes
1answer
92 views

call a string/function from database

I need call a string from $_POST["m_giambellino"], etc... (see down), saved in database of wordpress: if ($_POST["send"] == "Save") { update_option("mese_giambellino", ...
0
votes
1answer
130 views

How to get new post URL?

I'm wondering... how can I get the new post URL in my theme? Is there a built-in function for this? So, it should return something like http://example.com/wp-admin/post-new.php?post_type=post. ...
2
votes
1answer
34 views

Returning Variables back into a template

If I put a function that I want to use in a template I can put it into functions.php function myfunction(){ echo 'My String'; } add_action('myfunction','myfunction'); and in a template file put: ...
0
votes
1answer
62 views

Turn get_posts as string into an array for use in theme admin options

I am trying to add a drop down list of all posts into a theme admin section...without forklifting the theme code. I need to pass the post title and id into the 'options'=>array() like so: ...
0
votes
1answer
588 views

Hourly Routine Not Firing ( wp_schedule_event() )

This is a practically copy/pasted version of the hourly wp_schedule_event example taken from the .org site. Its not moving...and I know I have visitors to "trigger" it. Its kind of a pain to wait an ...
0
votes
1answer
178 views

One button to change all settings in theme customizer?

I have been attempting to create a theme reset button for the theme customizer that automatically removes all of the theme_mod settings. I have tried multiple ways to do this and have never been able ...
0
votes
0answers
103 views

How do I link a button I created in theme customizer to a function?

I created a button in the theme customizer and I want to use it to execute a function? All I can find is using controls to add theme settings such as CSS and text. Although this button is to clear out ...
0
votes
1answer
235 views

Some problems calling a function into sprintf() inside functions.php template file [closed]

I am new in PHP and WordPress and I am personalizing an existent template and I have the following problem. In the function.php file of the template I have the following function: function ...
2
votes
2answers
886 views

Issue with get_theme_mod returning a blank value instead of the saved value

I have what seems to be a rather troubling issue with the get_theme_mod function in the latest version of Wordpress. Only on particular servers (of which meet all Wordpress requirements) the function ...
0
votes
1answer
65 views

Can't get custom user meta to show in header

I have used Pie Register plugin to add a "Phone" field. I tried every method in the book (that google fetched for me, so far) to show it but it shows an empty array although the field is not empty ...
0
votes
1answer
910 views

Set WordPress Default Template

I'm using the Options Framework Theme to put together my options page and would just like to know how would I set up/call the Default Template - for whichever one the user has selected. For example, ...
7
votes
1answer
152 views

Shared functionality in plugins and themes

I recently started to develop plugins and themes and I found that I need to use several functions of on both. Sometime I think about to check if function / class exist before declared as said on this ...
0
votes
1answer
3k views

Add a Second Menu to a theme that only support 1 menu

I am no programmer but I can usually work stuff like this out when I read the code. I have a theme called Infinity which only supports 1 menu. I know how to do CSS etc but I can't find how I would a ...
0
votes
2answers
194 views

Overwrite category head title

Is there any way to overwrite a <head><title>Category title</title></head> tag? Let's say i have a "Videos" category, when user point's his browser to ...
1
vote
1answer
64 views

Want to be able to sign up subscribers as authors

I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
3
votes
1answer
61 views

which is the function that removes accented vowels?

Which is the function WP uses to convert words like "voilà" and "novità" to "voila" and "novita" in category slug? Can I recall it in my theme?
2
votes
1answer
504 views

How to generate and display widgets areas dynamically?

I want display different content in sidebar for every category, but as I create new ones I have to create the area for it. How can I have widget areas for every category and also display them on theme ...
3
votes
2answers
2k views

Need to create a Theme demo site that features multiple themes

I would like to create a site like: http://demo2.woothemes.com/?name=sentient for my clients, so that they can see the range of themes I offer. I own many templates from different providers, and ...
2
votes
1answer
352 views

Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory

I have a bunch of old posts on a blog that I would like to assign a featured image to. I have retrieved all the images I would like to use for each post. I saved each image file name after the slug ...
2
votes
2answers
2k views

How do I “unhook” / de-register jQuery so that it's not called as part of wp_footer();?

I need to "unhook" jQuery from my wp_footer() ... it's being called automatically and I'm looking for something I can add to functions.php which prevents it from being called a second time in the ...
0
votes
1answer
167 views

Theme Demo in live Site

I don't know how to explain this question but let me try, Just Imagine I've a website called xyz.com and in xyz there are 10 themes uploaded and in homepage i'll show name & screenshot of all 10 ...