0
votes
0answers
17 views

add classes to wordpress menu links

As the title already says, I am trying to add classes on the WordPress menu item links (so not the li, but the a element). If it is possible to achieve something similar to WordPress its own function ...
0
votes
1answer
70 views

Optimize CPT-function with a loop

I want to optimize my functions of a Custom Post Type (CPT). Now I have 10 meta boxes. For each box I have an extra function. The aim is to produce the 10 boxes in one function. I already tried the ...
0
votes
1answer
89 views

Right way to update widget on dynamic new input field

I have code to add an input field dynamicly in my theme. I have testd it, as a metabox and it works. But, not in a widget. First add and update, that codes work, but when I refresh page or try to ...
0
votes
0answers
100 views

Check if values exists DB

I am getting nutts with this one. I want to check if the email introduced in the form already exists in the database before creating a new record. But for some reason the email is empty at search ...
1
vote
1answer
102 views

How to customly read JWPlayer's “Playlist” items by using its “playlistid”?

In Wordpress (3.8.1) and JW Plugin (v2.1.2) with JW Player (v5), I need to read off the items contained in the Playlists of the JWPlayer Plugin. Normally The JWPlayer Plugin works like this, via ...
0
votes
2answers
75 views

how to display a page before the home page

I want to build a wordpress theme in which there is a landing page made by an image and a logo; when the logo is clicked the theme have to go to another page in which there is the navigation bar and ...
-2
votes
1answer
75 views

Wordpress: code structure

EDIT: I've posted them separately here wordpress.stackexchange.com/questions/137672/… and here wordpress.stackexchange.com/questions/137673/…. I'll vote to delete this one. I'm working on a Wordpress ...
0
votes
0answers
96 views

Customize Breadcrumbs - home -> page -> childpage -> post

I use this snippet for breadcrumbs, and it works well, but not as i need it. function test_breadcrumbs() { if(!is_front_page()) { echo '<nav class="breadcrumb">'; echo '<a ...
1
vote
0answers
149 views

Woocommerce - sort by discount in dropdown menu - woocommerce_get_catalog_ordering_args [closed]

I have searched and searched for a solution for adding a "Sort by Discount" to the dropdown on the shop page in woocommerce. I need to add a calculation such as this somewhere: $percentage= ...
0
votes
1answer
25 views

loginout function customization

I want to make login / logout function inside my header to display when the user is logged in Logged in as,{user name} where {user name} should be wrapped inside an anchor tag with a custom permalink ...
0
votes
0answers
107 views

favorite list showing logged in user's favorites instead of the profile member's favorites

I am trying to use wp favorite posts plugin (http://wordpress.org/plugins/wp-favorite-posts/) and buddypress to enable users to have a list of favorite books on their profile page. The only problem ...
2
votes
2answers
1k views

Add multiple custom fields to the general settings page

What I would like to do is to add a few custom fields to the general settings. This is the code that Im using. It works allright but I just cant figure how to add more fields. I would like to create ...
3
votes
2answers
100 views

When is it appropriate to put functions on page template vs. functions.php?

I'd like to improve my code and on a current theme, I've extended Wordpress with custom post types, metadata, customized user authentication, and a number of other items. Some of these functions ...
0
votes
2answers
50 views

Get Value of Custom Field

I use a dropdownbox to show all custom types ('abschreibungstabelle'). It works fine. But now, I want to show the value of the custom field 'nutzungsdauer' in my input-field. Any ideas? <input ...
1
vote
1answer
255 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
0
votes
0answers
60 views

restrict access to specific urls on a specific period of time

I have a countdown timer plugin which is set do redirect the user to a specific permalink after the time is elapsed. I've added a countdown timer here : mywebsite.com/mypost which is set to 3 days ...
0
votes
1answer
345 views

Add an Outside Wrapper to my Header and Make it Full Width

I did reposition the <header> outside the 'wrap class' class by adding this function in my function.php /** Reposition header outside main wrap */ remove_action( 'genesis_header', ...
0
votes
0answers
93 views

Insert image in custom row using woo-commerce plugin function

I am using the woo commerce plugin in bellow function ,I am trying insert one image which is stored in one session variable into the custom row woocommerce_order_items table File Name-> ...
0
votes
0answers
15 views

Insert retrieved image into another table?

I am retrieving one image from a table name "user_templates" after retrieving ,I have to insert that retrieved image into another table name "ca_woocommerce_order_items" but I am not able to insert ...
1
vote
2answers
30 views

How would go about if I just want a temporary function?

How would go about if I just want a temporary function? (It's a converter just for converting Access to Wordpress tables). I want to execute several times so therefore I want it automated, but I don't ...
0
votes
2answers
2k views

WooCommerce create new product and add to cart on form submit

I am customizing woo-commerce plugin to add product from the front end into the cart. I have written the function in functions.php, but i am getting a Fatal error. Getting this error--> Fatal ...
0
votes
1answer
22 views

child_of not working while searching

I'm trying to limit search to a parent page and its own child pages. I've changed searchform.php adding this code: <input type="hidden" value="<?php global $post; $ancestors2 = ...
0
votes
0answers
51 views

List all recent post by categories at the front page (WordPress MU)

I'm looking how can I put on the network homepage all recent post of my WPMU Network. I tried that script but there are not so much informations (I want the same presentation such as a normal post) : ...
0
votes
0answers
44 views

How to request login for user but not for bots

I wondering, how to not requesting bots like google crawler or bing crawlers to login since they can crawl my post info, but require user to login if they want to see the posts? I already know how to ...
0
votes
1answer
88 views

functions.php / replacing div's with new ones?

I'm not sure the best way to tackle this one: I have a menu I saw and like and want to use it as a basis for my own. I have the CSS for it. On the page it comes from its all labeled differently to my ...
0
votes
1answer
96 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
70 views

adding custom classes for tables

I have to implement a default class for HTML-Tables at WordPress. The wp-standard is <table> .. ist there any way to do this, that i get this output per default? <table class="abc xyz"> ...
-1
votes
1answer
90 views

Explode Array from Repeatable Custom Field

I have an array from repeatable custom field. When I print with vardump the output is... var_dump($affman); this is the result ... array(3) { [0] => array(4) { [0] => string(74) ...
2
votes
0answers
42 views

How to show in search results posts with a particular tag in a particular category?

As the home page of my blog I've a static page. There I want to show the navigation of the site. Category1 Sub-Category1 tag1, tag2, tag3 Category1 Sub-Category2 tag1, tag2, tag3 ...
0
votes
0answers
96 views

Add CSS Classes Field to Media Uploader

I need a functions.php hook that will allow me to add the standard CSS Classes field to the "ATTACHMENT DISPLAY SETTINGS" section of the Media Uploader modal. I know the css class field can be ...
0
votes
0answers
62 views

How to add html div´s inside wordpost?

I need some help. The problem is, I decided to build a match stats which i want to insert in the proper wp posts.I build it with html and css.The issue is when i add the code of it, which contain div ...
0
votes
2answers
277 views

How to add icon over specific thumb

I wanted to do the following, and I know its possible, but I don't know how. I'm looking at in_category, but it doesn't make to much sense. Basically what I want to do, for an example on my homepage, ...
0
votes
0answers
136 views

Show post last modified date twentyeleven theme

Here is the code snippet i'm using to display last modified date in my twentyeleven child theme since i frequently update my posts but the problem is search engine is not displaying my post last ...
1
vote
1answer
2k views

Modify search function in WordPress (TwentyTwelve)

I want to remove "Search for" text from search form in TwentyTwelve, to wrap in in a div for styling, and probably to play with php a bit – and I'd appreciate some advice on how to do that best. My ...
2
votes
1answer
801 views

How to add default images into theme customizer image control?

I am trying to figure out how I can pre-load a theme customizer image control with images I have selected. Is their a way to point the control to a directory so they automatically show up in the ...
0
votes
0answers
49 views

Wordpress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache

I have been working on a theme for a few days and when I realized my JS file for my theme customizer wasn't updating I decided to clear the cookies and cache, and wow that was problematic. As soon as ...
1
vote
1answer
241 views

List of all theme customizer control types?

I have been looking through the theme customization API documentation and google to simply find out the names of the control types already built in to the theme customizer. More specifically I am ...
0
votes
1answer
151 views

How to add button to top of theme customizer?

I am trying to figure out how exactly I can add a button to the top of the theme customizer. The spot I am talking about is where the "close" and "save" buttons are. The ones that are above everything ...
0
votes
0answers
222 views

How can I clear the theme mod settings?

Ideally I am looking to add a button to the theme customizer that allows the theme to reset to default settings, although that may be asking for too much in one question so I am wonder if anyone knows ...
0
votes
1answer
185 views

Custom <blockquote> HTML markup

In Wordpress, I would like to add a custom styling to the <blockquote> elements, replacing Wordpress' default usage by using a function (or however is easiest). When using the WYSIWYG editor, ...
0
votes
2answers
78 views

Why does modifying my functions.php file always result in a server error

Basically, every time I modify my functions.php file and reload it to the server my site "breaks" and nothing loads. As soon as I delete it, it starts working again. Now before anyone freaks out, I ...
0
votes
1answer
356 views

Post visibility option to theme front-end for author to select?

Is it possible to present author with an option to select visibility of a post (public, private, password) on theme front-end post adding without messing with Wordpress core? Any suggestions are ...
0
votes
1answer
476 views

add sidebar area to header of child theme

How can I add some extra sidebar locations for widgets in a child theme. The difficulty I'm having is because the parent theme uses some pretty gnarly setup to define the current sidebars. I would ...
2
votes
1answer
48 views

Modifying Footnote Plugin for Descriptive Title Attributes

I've been struggling for a couple hours now to get this working... Hopefully someone here can help me. I just started using the wp-footnotes plugin, and I'm trying to set the title attribute on ...
0
votes
1answer
176 views

Display a list of users with avatar filterable with alphabets

I'm trying to create a page which should display a list of users with the role "Author" only and exclude all other default and custom roles. I also want them to be filterable by alphabets, so if I ...
2
votes
2answers
868 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 ...
3
votes
1answer
507 views

When to use esc_url, esc_html, esc_attr, and friends?

Discovered esc_url today while customizing an _s theme. I understand what the function does (sanitizes the URL inside), but what I'm unsure of is the scope of its use. It makes sense to me that if ...
1
vote
1answer
1k views

Edit Yoast SEO breadcrumbs output

I want to customise the output of Yoast SEO breadcrumbs, I have this so far which works great: add_filter( 'wpseo_breadcrumb_single_link', 'ss_breadcrumb_single_link', 10, 2 ); function ...
2
votes
1answer
372 views

Post thumbnail relative link and HTML modify

I want to remove the website url from all the_post_thumbnail() so they become relative and remove/add attributes from the output. So far I got the following code added to functions.php of the theme, ...
0
votes
1answer
285 views

Function to add custom HTML into head in custom post-type list page

How can I add custom HTML/PHP file into head where custom post-type list showing like this ? Any Wordpress function can do this ? or I can only do by JS(jQuery) to append my custom content ?