0
votes
0answers
4 views

Counter the number of the product in order (PHP)

I am having a problem with a plugin... $total_items_of_order = count($order->get_items()); With this variable I am selecting al the products in an order. But I want that I every product gets a ...
0
votes
0answers
2 views

Open the “Add New Post” through keyboard shortcuts

I have an idea: Use the keyboard shortcut to open the "Add New Post". eg: Shift + O will be able to go directly to the "/wp-admin/post-new.php" page. Whether there is the possibility? Expect any ...
0
votes
0answers
5 views

site_url() returns with additional backslashes

I am using site_url() function and it returns the address as http:\/\/vip.local\/cc where I can see that WP automatically adds unnecessary backslashes. Is this for some escaping purpose? I tried using ...
0
votes
0answers
5 views

Proper way to set up rewrite with Wp

This seems to be modding my .htaccess with every page view. What is the standard way of setting up a rewrite? This is what I have so far: if(!function_exists('some_rewrite')){ add_action( 'init', ...
0
votes
1answer
8 views

Need help targeting a custom post type with conditional tags

I found some code online to create content blocks on my WordPress blog. I use a content block at the bottom of the sidebar of my page for a shopping widget. Here's the relevant code from ...
0
votes
1answer
9 views

pre_user_query meta_query admin user list

I'm attempting to use pre_user_query' to change the query to include somemeta_query` variables. My goal is to only display users in the user list if they share a common meta_value with the current ...
0
votes
1answer
10 views

Where's the explanation of the TinyMCE's vars in the WP core?

I am modifying my TinyMCE editor for my users, and I'm using the example in the docs as a starting point. function my_format_TinyMCE( $in ) { $in['remove_linebreaks'] = false; ...
0
votes
0answers
2 views

How to solve “invalid response document returned from xmlrpc server” occurred in WLW

While publishing a post to my blog on Windows Live Writer, I am informed the following error: invalid response document returned from xmlrpc server More detailed information: How to fix it?
0
votes
0answers
5 views

Remove “nofollow” from widget_text

How can I remove rel "nofollow" from a widget_text? I'd like to try a solution without install a plugin. Thanks.
2
votes
0answers
11 views

How to make a widget expand wider than the column width when editing its settings in the admin

The WordPress Text widget expands horizontally beyond the margin of the sidebar when added to a sidebar and opened in the admin and I am trying to apply that function to a widget. I see inline css is ...
1
vote
0answers
4 views

Fallback for oEmbed content

Is there any easy way to detect if an oEmbed url is still returning any content? And, if so, is there a way to replace the missing oEmbed content with some kind of fallback content? For instance, if ...
0
votes
1answer
20 views

Can not manually create a database ( db, user, pass ) for a plugin

So I was working on a plugin and I needed to cache some third party API access, and I needed to manually create a database upon plugin activation or upgrade. The caching stuff needs a database host ( ...
0
votes
1answer
17 views

how to read database fields

Can someone please explain how to read the letters, numbers, and colons in the wordpress database? For example: a:1:{s:13:"administrator";b:1;} in the wp-capabilities table. Thanks!
0
votes
1answer
14 views

how to add wp-user fields to front-end form

I've found all kinds of information on how to add user-meta fields to a front-end form. However, I can't find how to add email and the change password. I found the form fields in user-edit.php, but ...
0
votes
1answer
8 views

PHP error when trying to upload .mp3 files via Media Library

When I'm trying to upload a sound file (mostly .mp3's) via the media library, I get the following errors: Warning: require(/path/to/website/wp-includes/ID3/getid3.php): failed to open stream: No such ...
0
votes
1answer
14 views

Exporting featured image

Hi i have a news website with a pretty big database full of posts and pictures, now for several reasons i'm creating a new wordpress website, but i want to import all the news, with the pictures from ...
-1
votes
3answers
19 views

get_posts with multiple categories

If I do a get_posts() with category set to 1,2 I will get all posts in category 1 OR 2. If i want all posts whit both categories, that is 1 AND 2, how do I make that request?
4
votes
1answer
47 views

Getting instance variable in scope of 'wp_enqueue_scripts'

I need a little help getting my head around passing instance variable to a hook. I am reading the CSS files I need in my template dynamically and storing them in a $settings object that I am keeping ...
0
votes
1answer
19 views

Rewrite Url to a SEO-friendly format

I am using a membership plugin and I would like to change the user-profile Urls. Example Url: http://rec-orders.de/?p_action=user_profile&post_author=2044 This is how the new Url shall look ...
1
vote
1answer
16 views

Multiple navigation menus to a location?

I want to be able to assign multiple menu's to 1 navigation location. But when I want to assign the second navigation, the previous is unassigned. How would it be possible without breaking the ...
0
votes
0answers
9 views

Image slide not appearing on website

Images not displaying on my site only [nivoslider id=”676″] is shown What would I need to do in order for the images to show?
0
votes
0answers
12 views

How to add more fields to wordpress galleries?

I would love to add more fields so I can add date, title and other information to Wp galleries..i wonder if there is a tutorial or guide you can recommend me guys? I found a few ways to do it, but ...
1
vote
0answers
11 views

Storing revisions of metadata for custom post type

Storing metadata for custom post types is easy, you just need to add an action for 'save_post' with your method that handles this. In which you have then something like the following for a field that ...
1
vote
1answer
8 views

What's the best way to go about updating Wordpress plugins when using SVN and multiple environments?

So we are using SVN in order to manage three Wordpress environments. One for development, one for testing and the productive environment. I am relatively new to SVN so still struggling with certain ...
0
votes
0answers
13 views

how I can call header.php and footer.php outside from wordpress theme directory

I have a theme installed in wordpress like this directory /wp-content/themes/mytheme so in the root I have custom code which is little complex and easy to integrate in wordpress theme so I want to ...
-1
votes
0answers
6 views

No plugin is Activating of wordpress

Non of the Wordpress plugin is activating, On click activate it showing the error "Plugin could not be activated because it triggered a fatal error." Need help
0
votes
0answers
8 views

Display list of most recent grandchild (third tier) pages

I currently have a piece of code I'm using to display a list of the three most recent 'special' custom post type posts which will display an image, title and content of these posts. I'm trying to ...
-2
votes
0answers
9 views

How to add pagination to custom Woocommerce loop?

I am using woocommerce and need to make a new loop. This loop is working, however, some key information is left out, I need the number of products per page, and more importantly the pagination is ...
0
votes
1answer
13 views

How to add a custiomized javascipt into a template

I am a newbie of Wordpress. Now I am trying to add my av_s.js file into a Wordpress template, but it seems much more crappy than I expected. I locate the av_s.js file in the js folder under my theme, ...
0
votes
0answers
9 views

wp_nav_menu work in functions.php but not in the theme

I use wp_nav_menu with this code in functions.php: register_nav_menus( array( 'sidebar_menu' => 'Sidebar menu', 'topmenu' => 'topmenu', ) ); $args = array( 'theme_location' => ...
0
votes
2answers
28 views

current_post not working - give me -1 for every post

I try to get the current post index number and echo the number of this lesson(post)in a series of lessons(category). I'm inside the loop on single.php page my code looks like this: $args = array( ...
0
votes
1answer
7 views

Mobile navigation is shown, but standard navigation does not disappear

I have setup that website berlin-permanent-makeup.de and the mobile navigation kicks in, as soon as the screen is smaller than 800 px wide. So far, so good. My problem is, the standard navigation ...
-1
votes
0answers
11 views

Use post ID in meta query

Is there a way to reference the post ID in a nested meta query like so: $args = array( 'post_type' => 'type1', 'nopaging' => false, 'orderby' => 'desc', 'posts_per_page' => ...
0
votes
1answer
9 views

Custom database query to validate data

I cant find any syntax for custom queries, use of $wpdb is new to me so can anyone help me solving this?? if(isset($_POST['submit'])) { global $wpdb; $tablename='wp_form_subscribe'; $myrows = ...
-1
votes
0answers
10 views

Integrate options framework in post types of wordpress [on hold]

How to integrate the options framework in wordpress post types or plugins?
0
votes
2answers
22 views

Adding featured image messes up page layout

I got someone to design the wordpress side of my site and now I need to try to understand what they did and would be grateful for advice.I have a Page that shows sections and stages (which are ...
0
votes
0answers
11 views

Custom post type with custom permalink

when i create new post with my custom post type 'censorsheep' i get link like /censorsheep/[title] I want replace [title] with post id, i try use this code function censorsheep_rewrite() { ...
0
votes
0answers
10 views

Woocommerce enqueue style problem

I have removed the woocommerce styles with the following functon: // Remove each style one by one add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' ); function jk_dequeue_styles( ...
0
votes
0answers
14 views

How to paginate query using get_categories()

How can I paginate my custom template page with get_categories() loop? $args = array ( 'taxonomy' => 'programs-cat', 'number' => 1, 'offset' => 1, ) ?> <?php $programs = ...
0
votes
0answers
11 views

Post List Widget with custom posts and editing the Read More Link

I actually have 2 questions, one related to the Post List Widget, the other concerns the "Read More"-link. ad 1) I want to show a certain category of posts (only one post at a time) in this widget. I ...
0
votes
0answers
4 views

mobile usability issues with /wp-content/uploads/ folders

Google webmaster tools is telling me I have mobile usability issues with my wp-content/uploads/ folders. These urls aren't for public viewing so it doesn't matter if there are issues but will I get ...
0
votes
0answers
21 views

Pages not correctly showing on mobile

Since a few days, after we modified the appearance, we faced a relative big problem. Via the mobile, tablet, ipad, iphone, the site www.kornuyt.nl is not showing a few pages correctly. The exact ...
0
votes
0answers
17 views

wp.editPost 'API Wordpress' doesn't edit custom fields

When I try to edit custom_fields with wp.editPost. Only edit the other fields, but not custom fields. Custom fields are created again(repeat fields), but will have to be edited. I am looking: ...
0
votes
0answers
25 views

Different post design as per category

My site has two types of categories ( training & hard-reset ). Under each category there is a slight change in the design for posts. repairmymobile.in/hard-reset/datawind-ubislate-7cz-tablet/ ...
0
votes
0answers
8 views

Menu in Genesis theme [on hold]

I need help about my menu and logo in wordpress genesis theme with Cafe-pro child theme, the problem is logo and menu are residing in the same div so when ever i make any change in menu it is also ...
0
votes
0answers
14 views

Get the vimeo video id from iframe

This is my code . When i am try to get the vimeo video id. no result will be produced $iframe_string ='**Vimeo iframe video code**'; preg_match_all('http://(player\.)?vimeo\.com(/video)?/(\d+)', ...
0
votes
0answers
12 views

Use google custom search engine on my site

I want to setup Google custom search engine on my site like this domain I'm a WordPress beginner and need some suggestions
1
vote
1answer
19 views

get_option() is not working even db contains the corresponding option_name and option_value

First of all, this is not a plugin specific problem. I wonder why this might happen? I am using @bainternet's Tax Meta Class for saving Taxonomy Meta using the options table. I uploaded my contents ...
0
votes
1answer
16 views

Get the selected term in a dropdown search

I am using the following function to create a dropdown search form and populate it with the terms of a custom taxonomy called 'grades'. The dropdown works for searching, but I can't figure out how to ...
0
votes
0answers
8 views

Get previous post ID for wordpress blog in admin area

I use W3 total Cache for my wordpress blog. I want to automatically purge the cache of the previous post, when a new post is published (or when status of a scheduled post becomes published). Note: I ...

15 30 50 per page