0
votes
0answers
2 views

How do I add some javascript validation to the admin interface form's onsubmit?

I have a plugin that adds meta boxes to the admin interface and I need to do some validation when the user presses the "update" button before the form is submitted. Is there a WordPress action or ...
0
votes
0answers
6 views

Define size for `get_post_gallery_images`, they seem to have been resized to 150x150

I'm using get_post_gallery_images and it's spitting images out as 150x150. It doesn't look like it takes a size parameter, so I assumed it would just spit out the largest image or preferably one of my ...
0
votes
0answers
4 views

Stop link being removed in menu/list when viewing that post

I am using the following code in a widget that displays the posts in that category, but when I view that link by clicking it, it disapears from the menu/list. Take a look ...
0
votes
0answers
9 views

wp_nav_menu slide out [on hold]

I want to create a slide out menu without plugins. I tried a lots of codes but somethings wrong. A menu like http://tympanus.net/Blueprints/SlidePushMenus/ the first one. <div id="topNav"> ...
0
votes
1answer
8 views

How to set back query var author_name after unset it?

I am unsetting the query var author_name for querying posts in the author template page. I am using pre_get_posts to filter the main query. After the query is run, I need to set back the author_name ...
0
votes
0answers
16 views

How to change value in wp-include/taxonomy.php without exchanging the Wordpress-core

I had the problem that tags of private posts didn't show up even if the user is logged in. The reason seems to be the value of "post_status" in the function "_update_post_term_count" in ...
0
votes
0answers
15 views

What's a an up-to-date Germanix (Plugin) replacement? [on hold]

The Germanix plugin removes special characters from slugs. It is no longer under active development, the 'current' version was published a few years ago: ...
0
votes
0answers
10 views

Remove the parent name from permalink

I have a problem with the address of the categories in my website. At first, I have to say I checked all the similar topic and question in stackexchange, but none of them solved my problem. Problem ...
0
votes
0answers
5 views

Get custom taxonomy url on archive page

This is driving me crazy, so please help me guys with this. I'm trying to add a metatag to custom taxonomy header which the url of my custom taxonomy's term's archive page. How to get the URL of the ...
0
votes
1answer
15 views

save_post action not firing when save

Below is my code that will take the post_id and randomly get 3 posts from the same category and store them as custom field. The code is clearly working, because when I click "New Post", I see the ...
0
votes
2answers
15 views

How Can I Change The Tax Query For The Main Loop For Taxonomy Archives?

I am trying to change an argument in the tax query in the main WP_QUERY object for creating the archive view for my the archive of my hierarchical taxonomy. My goal is to change one of the arguments ...
0
votes
0answers
11 views

How Do I Merge Categories With phpMyAdmin

I tried the following phpMyAdmin query to merge my category 112747 into my category 112748: UPDATE wp_term_relationships SET term_taxonomy_id = 112747 WHERE term_taxonomy_id = 112748; It did not ...
0
votes
1answer
9 views

wp_nav_menu (secondary menu) not adding current classes

I've looked everywhere, but i can't find a solution. My secondary menu isn't adding any current classes when it's rendered. I have added this menu in my functions.php file function ...
0
votes
0answers
6 views

Custom nav walker error [duplicate]

I'm using wordpress 3.9 locally to develop a new theme for my website, however I am getting these errors when trying to use a custom nav walker function: Strict Standards: Declaration of ...
0
votes
0answers
11 views

How to set featured image size in percentage [on hold]

So I'm using this code as a part of a query to get related posts <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), '' ); ?> <div class="relatedpost" ...
0
votes
0answers
6 views

Cannot oembed in buddypress activity?

I create a buddypress site on local host. After moving to vps server the oembed not working anymore in activity stream. I deactivate the firewall. No success with that. I'm thinking maybe I missing ...
0
votes
0answers
11 views

How to list categories/tags as a list in meta tags

I was wondering if there's any way to list all tags and categories of a posts in the header of that post. I want to list all the tags/categories via a plugin as a list in meta, similar to this: ...
0
votes
0answers
11 views

What is the proper url for facebook api to work with wordpress?

This may seem silly but after google searching it I was unable to find a solution. I'm using the newest facebook PHP SDK and wordpress. I've tested my code in plain php and it works like a charm. ...
0
votes
0answers
11 views

Display remaining characters for input field using jquery [on hold]

I'm trying to display the remaining number of characters for an input field using jquery. I found a very simple code, and ended up with these files: my-form.php <input type="text" ...
0
votes
0answers
11 views

Scheduling posts via sql

I got 10k posts with dates that are in the future. I imported my posts as a draft cause it seems quicker. I have used phpmyadmin to set the status of the posts to future with this sql command: UPDATE ...
0
votes
1answer
14 views

Problem with single-page for my custom post

I'm working on a website with a portfolio section, and I'm almost finished with this section, but I have a problem with the single page which is : whenever i click on any portfolio link, the single ...
0
votes
1answer
19 views

Different layout on search page depending on category post

I would like to display different layouts for post with different categories on the search page: I tried with this code: <?php if(isset($_GET['the_category'])) { $type = ...
1
vote
1answer
15 views

How to add parameter to wp_enqueue_script?

I have the situation that I need to include special scripts only in case a parameter in a macro is used. For the background, see the following: My plugin ChessTempoViewer which wraps a JavaScript ...
0
votes
1answer
19 views

Multiple images with Media Uploader on front-end

I'm trying to implement a multiple image upload on a frontend form, using the built-in Wordpress Media Uploader. I managed to have a single image upload, but I can't find out how to have multiple ...
0
votes
1answer
10 views

Page updates appear in Preview but not live version?

I have made some changes to a blog page and excluded some categories. However, whenever I view the blog online the excluded posts still appear. But when I got to the blog page and click 'preview' the ...
0
votes
0answers
9 views

WordPress Genesis not excluding category from blog

I am trying to exclude a category from my blog. I login to WP and go to Genesis and Theme Settings and add the category IDs to the Blog Page Template area and hit save. Nothing happens. I have also ...
1
vote
1answer
60 views

When to use esc_html and when to use sanitize_text_field?

It seems that they do almost same type of job. So... When should I use esc_html() instead of sanitize_text_field()?
0
votes
1answer
19 views

Redirection on Custom page

I have created login page template and created the login page through wp-admin->pages. here I select the template 'login' Now I need to redirect user on this page if somebody haven't logged in. ...
0
votes
1answer
8 views

wpsc: detect current sub-category [on hold]

I'm looking for a way to detect the current sub-category in use on the WP E-commerce plugin (http://getshopped.org). Detecting the current parent category is easy enough, thus if you use <?php ...
0
votes
1answer
11 views

Settings API - why is not get_options() productive?

Someone explained me that using get_option is not productive, it's better to implement a custom function and then save the options in a single multidimensional array. Before I thought that having an ...
0
votes
0answers
13 views

How to show a custom taxonomy using a custom template

I've been playing around the custom taxonomy and custom post types. I've been able to get the post type working fine, with my slug as I need. However, creating a taxonomy page (e.g. taxonomy-????) I ...
0
votes
1answer
14 views

wp_trash_post action hook with custom post type

When a 'contact' cpt post is trashed, i need a metakey from another cpt 'act' to be deleted, i have been searching all over which hook i should use but unfortunatly the codex action reference page is ...
0
votes
0answers
17 views

Strange behavior with pagination on custom query

I already have a knot in my brain and searched here and on the web, but I can't find any solution. I build a Custom Post Type with some Taxonomies and create a page template to get some of the posts ...
0
votes
0answers
12 views

Use get_term_children to get the sub category of a parent category for the current post

In my WooCommerce theme I've created a root category: 'Brands' then for each product I've added it's brand as a sub category to the 'Brands' parent category. On the product page I want to display the ...
1
vote
1answer
19 views

Is wp_nonce_field vulnerable if you know the action name?

Is wp_nonce_field vulnerable if you know the action name? I am actually adding a hidden field with name = the name of the action name in my form so that my plugin can identify it. I want to know if ...
0
votes
1answer
16 views

$wpdb->prepare with ON DUPLICATE KEY UPDATE

I just took this code from $wpdb Codex page, and modified my existing Insert query: $table = $wpdb->prefix . 'user_req'; $post_id = explode('_', $_POST['post_id']); $user_id = $_POST['user_id']; ...
0
votes
0answers
18 views

wordpress plugin to create subdomain from registered user

I have created Network enabled (Multisite) site in Wordpress installation. I can able to create multiple site as many as i want.It will create the separate table to maintain the site data ...
0
votes
0answers
5 views

How to get the finding links from the post content [migrated]

I need some help in finding links in html code. function get_content_link( $content = false, $echo = false ){ if ( $content === false ) $content = get_the_content(); $content = ...
0
votes
0answers
2 views

Why adding Categories does not auto refresh in Backend while using my custom theme?

If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page ...
0
votes
1answer
19 views

Recent posts headlines. How to optimize the loop

I'm using this in my page template to display the 20 recent posts headlines from category number 8, 17, 23, 423 <div id="horizontalTab"> <ul class="resp-tabs-list"> ...
0
votes
0answers
8 views

Wordpress back-end I am unable to view individual order details [on hold]

Thanks in advance for all your suggestions. I am working with woocommerce plugin and run to some issue. Let me explain my issue. "In Wordpress back-end I am unable to view individual order ...
0
votes
0answers
7 views

WooCommerce: How can I display layered PNGs for each product variable? [on hold]

I have a variable product on WooCommerce that has several options available to buyers: there are 6 different option types with several options for each. If I were to make a variable product with its ...
0
votes
0answers
6 views

W3 Total Cache debug shows page caching not working, DB and Object caching works

I have nginx, apc running on my server and configure nginx according to this tutorial: http://codex.wordpress.org/Nginx I installed and activated w3 total cache and was done with all setting with no ...
-1
votes
1answer
33 views

Pagination not working for custom author page

I am using the theme TwentyTwelve and replaced the standard post query in the file author.php with the following code: <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; ...
0
votes
0answers
11 views

How to create a button for importing demo content (.xml file)

I want to create a button (Import Demo Content) in my theme option panel. If user click Import Demo Content button then selected .xml file uploaded automatically and send successful message. I ...
-3
votes
0answers
25 views

Best code to add Open Graph tags to Facebook [on hold]

There are tons of snippets to add open graph tags to WordPress, but what's the most-complete way to add open-graph with functions.php. A code which adds code and tags to all posts, pages, archive ...
0
votes
0answers
11 views

Navigation Menu to Sidebar [on hold]

I'm using a theme that, when used on a mobile device or a small screen, converts the navigation bar at the top to a dropdown menu. However, I'd much rather it be a push menu like the one Facebook ...
0
votes
0answers
18 views

Which hook to use to add notification message at beginning of my <body>

i want to add dynamic messages to the beginning of my but I can't figure what hook to use. I have tried get_header but i can't append content to it... any idea? I don't want a solution that requires ...
0
votes
0answers
8 views

add content nth-child to pagination

I'm using a pagination plugin on my website called Wp-PageNavi. it works fine and help me to navigate between pages from a same category. the result looks like this : (when on page 4 for example) : ...
0
votes
0answers
11 views

Plugin dont work after W3 Total Cache and Wordpress Update - Error

After the latest W3 Total Cache and WP Update (3.9) one of my plugins to create images don´t work. This error shows up after i create and publish the post (image) in the front end: Warning: ...

15 30 50 per page