Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (9)

0
votes
2answers
33 views

Database custom table issues - incorrect result displayed

First things first: I've spent most of today going over these forums; the stackoverflow forums; the php.net manual; and a bunch of random sites I found through Google Search - so, if I've missed the ...
-1
votes
1answer
29 views

Meta Tags by Meta Box

I have successfully added custom meta tags to metaboxes on my pages. The issue I am having is when the metabox has no data it is still showing in the html. This is the code I have got, does anyone ...
0
votes
0answers
32 views

How to create pagination that links to Posts directly and not a numbered page?

I have site that displays 1 post per page, I would like to paginate this automatically with numbers underneath the post. Default function for pagination is to link to say ?page=2. I searched but ...
0
votes
0answers
31 views

Query_posts using two custom taxonomies not returning posts

If I remove 'relation' and one of the taxonomy arrays the corresponding posts are returned for each taxonomy but when I add the 'relation' = 'AND' no posts are returned. Is there a problem in my ...
0
votes
1answer
101 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
18 views

Multiple post selection

I want to enable my users to select multiple posts from a grid display of content. the selection will be used to make a bulk action based on the selection (for example - send an e-mail to all post ...
0
votes
0answers
68 views

Allow users to create their own page/s

I Create a network where any register user have a profile, from user profile i want enable user to create own page/s where he can post like Facebook. There is a way to do this with wordpress or i must ...
0
votes
1answer
36 views

Directory structure for plugin changes

When I'm working in Wordpress, I quite often need to make adjustments to plugins. The recommended method, as I understand it, is to take the plugin file I'd like to modify (say, mypluginfile.php), and ...
0
votes
1answer
27 views

How can I pass value to function in add_menu_page?

I was use to pass value to function for the below menu. add_menu_page('Competition Manager 2013-2014', '2013-2014', 'manage_options', 'manager_2013_2014', 'manager_2013_2014', plugins_url( ...
0
votes
1answer
26 views

Returning or use form data using a hook?

I have built a plugin that allows a user to submit forms to a third party API via an API call. I'm wondering if it's possible to add in a hook right before (or after) the data gets sent to the third ...
0
votes
0answers
119 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 ...
0
votes
1answer
19 views

Customizing Users in Admin Area

I know how to customize the users in the admin area of WordPress. I have done it many times. However, I would like to customize the user a bit differently as explained below. I would like to add a ...
1
vote
0answers
41 views

Check for and enforce unique value in user-entered custom meta field in WP Admin

I am trying to figure out how, on a new or edit post screen, to allow the user to enter a custom meta item, BUT force it to be unique. Ideally the process would work like so: Contributor logs into ...
0
votes
2answers
51 views

Change the search results header from plugin

Hi I'm writing a plugin to include custom search results. I'm not really allowed to edit any theme pages, but the search results page in twentyfourteen's search.php seem hardcoded to me: ...
0
votes
1answer
60 views

Trying to set specific image dimensions and crop with ACF

My question is about image sizing. I get how to the sizing/cropping stuff natively in WP add_image_size( 'thumb-crazy', 500,500, true); And then in the template type: if ( has_post_thumbnail() ) { ...
0
votes
1answer
53 views

Automatically add image caption with values from a post parent field?

i have a custom dropdown field on post and i would to get the value from that custom field and insert it on each image caption field uploaded to the current post. I have been looking for a way to do ...
0
votes
1answer
60 views

What is the best way to setup Wordpress for version control and PhpStorm while allowing updates

Ok, so I have an active Wordpress website that I would like to put under version control. Since I do keep pretty up to date on core and plugin updates I would think that those items should be best ...
0
votes
1answer
25 views

Get whole <li> linked with wp_list_pages

I'm using wp_list_pages for my sidebar and it works fine to me, i just wanna add new feature which seems is not listed on codex or i don't know how to use it. $args = array( 'child_of' => ...
0
votes
0answers
21 views

How to relate multiple CPTs via Custom Taxomonies?

I have 3 custom post types - Events, Sessions and Speakers. Events have multiple Sessions. Sessions have multiple speakers. Speakers can be at multiple everything. They all have their own ...
0
votes
0answers
28 views

Image upload with one size going into a custom directory

I have added several sizes with add_image_size( 'x', y, z );. All those sizes are saved to the uploads directory, which is alright. if ( function_exists( 'add_theme_support' ) ) { add_theme_support( ...
1
vote
1answer
28 views

The Best Way to always load the newest version of 3rd party code

There is a class for plugins and themes that makes custom meta boxes easier to develop called cmb_Meta_Box from Custom-Metaboxes-and-Fields-for-WordPress at ...
1
vote
1answer
36 views

Conditional statement to show pagination

I'm using pagination to navigate between posts from the same category. Here is my code: <div class="article_single_prev_next"> <div class="article_prev"> <?php ...
1
vote
0answers
18 views

How to host 2 subdomains as lookalike destinations under one master domain?

Due to restrictions on several required plugins, we cannot use multisite (some are not multisite compatible) at this time. So we have 2 sites with e-commerce that will look essentially the same (same ...
0
votes
1answer
30 views

Need to have an archive widget which organizes and displays a custom post type using a custom date field

I found a handy plugin at http://www.redletterdesign.net/wp/cpt-archive/index.php for generating a calendar archive using a custom post type. My problem is I need it to organize these posts not by the ...
0
votes
1answer
30 views

Force WordPress to load a specific template

How would I force WordPress by code to load a template file on my home page? I know how to do it via the backend but I would like to create a plugin and have the option to set the front page from ...
0
votes
0answers
28 views

Order wp-admin posts by ID instead of post_date

I'm running into a situation with my log system (based on a cpt) where logs with the same post_date (due to rapid entry) are showing up out of order on the posts listing section in edit.php. You can ...
0
votes
0answers
47 views

Custom comments list, right depth

I created a custom comments_list() function, it works fine, the only problem is to show child comments inside the parent div. It works well with first and second depth levels but not for others. This ...
0
votes
1answer
38 views

Selecting which pages to display custom post type on using checkbox

I have a custom post type called Testimonies. What I'm trying to do is allow a user to create a new Testimony and then select from a list of checkboxes which page(s) on the site he wants this ...
0
votes
1answer
23 views

wp_customize set_transient except during preview

So I'm using the $wp_customize to change many things in a theme, and as a result I'm wanting to set a transient for the generated CSS. I'm trying to find a flow that won't cache temporary results ...
1
vote
2answers
78 views

(solved) how to have the gallery shortcode output one single UL list instead of several DL?

I need the built-in gallery shortcode to output UL instead of DL. How can I do it? I know I can use the 'post_gallery' filter, but that means almost duplicating the media's gallery_shortcode function. ...
1
vote
0answers
31 views

How to rewrite the post URL according to the category?

I have 1000 posts in my website, half of them are in difference categories and another half is in category called "blog". Current permalink structure is: http://xxxxx.com/articles/%postname% - this is ...
0
votes
0answers
46 views

Special characters showing in fallback font

I have created a widget that displays some text using a custom font imported with CSS @font-face. The font have support for scandinavian characters åäö, but when I display these characters in my ...
0
votes
1answer
290 views

Custom Search Query

I'd like to set up a custom search page that does the following: User checks off several items in a form that he'd like to see returned in his search (essentially choosing from a list of tags). ...
1
vote
0answers
21 views

How to make theme elements customizable in wordpress?

In Wordpress there's a menu option called 'Appeareances'. I want to add (e.g.) a submenu 'header' there and then be able to customize the header from within wordpress (administration page). From what ...
0
votes
1answer
53 views

“Current” class on a singular page menu item with custom post types?

I'm struggling to get a "current" class for the corresponding menu item when I'm on a singular (child) page of a custom post type. These are the arguments I used when registering the post type with ...
1
vote
1answer
71 views

Hiding taxonomies with no children WP_Query & tax_query

I have this code which has taken over 7 hours to put together through research but the last hours or so I have hit a brick wall! I require the taxonomy title to be hidden if there are no posts ...
1
vote
1answer
109 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
1answer
76 views

How to show only Standard Format post in my custom taxonomy page -wordpress 3.8.1

I want to exclude photo and video categories (ID's 1 and 2 respectively) from my custom taxonomy page. Any suggestions on how can I exclude these two categories from the loop? <?php /** * ...
0
votes
2answers
82 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 ...
0
votes
0answers
29 views

Own Custom Tags/Category page ( posts)

I want to make a page where on each tags : My page should look alike : http://www.missmalini.com/aamir-khan-2/ Above page is coming from http://www.missmalini.com/celebrity-fan-pages/ this are ...
0
votes
0answers
47 views

ACF Plugin Conditional Logic add 'published' option

Is there a way to use the conditional logic of the ACF plugin to test whether the post has been published natively? I think I might be able to do this manually, but later updates would break the ...
-1
votes
2answers
204 views

How to add product images using script?

I have few hundred products on woocommerce without images. I am planning to upload images in future. Images have same name as the SKU of product (+.jpg). Is there a way I could write a script that ...
0
votes
1answer
34 views

Is there a way to hide a user's posts from their Activity feed?

I'm helping out a friend who runs a paid membership site, and he recently discovered that any public user can access some of the pay content by going to a particular user's Activity feed. He's asked ...
0
votes
0answers
82 views

WP_Customize_Image_Control is not doing very much

I am trying to add a logo option. The section and the option shows up under Appearance - Customize as expected. It offers me to upload an image. I do that. The image gets uploaded, but the option ...
0
votes
0answers
9 views

Adding help for user when using $wp_customize->add_control() [duplicate]

Is there any way to add help for users when adding a control to Customize with $wp_customize->add_control(...);
0
votes
0answers
35 views

JQuery problem display

Hy i have a small problem with NivonoSlider. This is my site - http://bit.ly/1iRSwcf When i check on a checkbox it display the archive base a custom field, in my example by color. The problem is: ...
0
votes
2answers
351 views

Custom CSS at Appearance > Edit CSS is missing after update [closed]

A WordPress site that I have written a few CSS custom styles for has lost its custom styles. I previously wrote the custom CSS in the Appearance > Edit CSS section of the admin dashboard. But now that ...
0
votes
0answers
32 views

WP_Customize->add_control Navbar Background Image

I'm having trouble figuring out how to properly add a setting under Navigation in the Theme Customization page in order to customize and specify a background-image to use in the navbar.. similar to ...
0
votes
0answers
41 views

Multiple Taxonomies Using Custom SQL Query

I am running a custom SQL query, and I am trying to pull posts with two taxonomies assigned to it. Here is my query which works: $querystr3 = "SELECT *, events_startdate.meta_value AS ...
0
votes
1answer
56 views

shortcodes - style them or change/remove the square brackets?

I sometimes use for the clients, plugins that are based on wordpress shortcodes,they do offer a lot of options for the clients to play with like adding tabs galleries and so on. But I see that the ...