0
votes
3answers
2k views

how to display only one level subcategory in wordpress

This code using taxonomy catgery image plugin to display images for categories .this code display subcategories of main category in parent category page (category.php) . but i want to display only one ...
0
votes
1answer
11 views

How do I make plugin generated pages look normal [on hold]

I am using the Sensei (A Lesson/Course Maker) plugin on my site with the Qualia wordpress theme. The sensei plugin lets me choose some pages that I made to where it puts content. These pages look ...
1
vote
0answers
16 views

Translating dynamic strings

In my form I have a dropdown. I'm getting the values and labels of the dropdown dynamically from SugarCRM via it's rest API. I would need to translate these strings. I tried to pass the dynamic ...
0
votes
0answers
5 views

Woocommerce productsorting will not update page [on hold]

I`m working on woocommerce and have been trying the whole day to fix the problem. Now its up to you ill cant find it out. If i change the option in the form it should automatically change the ...
6
votes
2answers
598 views

Is wp_is_mobile() effective?

I'm going to test the user agent to load a mobile template instead of the desktop theme. There are many mobile detection scripts out there. Does wp_is_mobile() function work well? What is your ...
0
votes
1answer
60 views

menu_order not working with slugs that start with admin.php

I am filtering the menu_order hook (codex link -> http://codex.wordpress.org/Plugin_API/Filter_Reference/menu_order) to change the order of my links in the admin menu. Currently the ordering will not ...
0
votes
3answers
605 views

Add Image Size for Featured Image with Responsive Design

So, I know that I can make a custom featured-image size by adding this to my functions.php file: add_image_size('newsize', 883, 300, true); and calling it with: the_post_thumbnail('newsize'); ...
0
votes
1answer
11 views

Object of class WP_Error could not be converted to string

After deleting some categories (shouldn't have done this), I get the following error Catchable fatal error: Object of class WP_Error could not be converted to string in [FILENAME] on line 45 ...
-1
votes
0answers
5 views

Remove default slug in WPMU Wiki plugin [on hold]

I'm working with the WPMU Wiki plugin: https://premium.wpmudev.org/project/wordpress-wiki/ When I leave the slug setting blank, wikis post to a default slug of "incsub_wiki." However, in this post on ...
0
votes
1answer
9 views

How to change the target size of images clicked on in Wordpress standard gallery

I want to use the standard Wordpress gallery without using other plugins and stick to the gallery shortcode. So, I know I can change the size of the thumbnails, that are shown in the gallery grid with ...
0
votes
1answer
218 views

wp_insert_post() or similar for custom post type

Need to insert custom post type objects from code. Haven't been able to add using the default method $id = wp_insert_post(array('post_title'=>'random', 'post_type'=>'custom_post')); creates a ...
2
votes
1answer
780 views

Only list categories that contain posts of a specific custom post type

I have three custom post types set up, articles, videos and photos. I am using standard categories for these post types, and sharing the categories across all post types. I am trying to create a nav ...
0
votes
2answers
14 views

How do I publish portfolio items with a future date?

I am trying to publish portfolio items with a future date (using for an event based website) and I can't see to find any plugins or anything. I have seen them for generic posts, such as "The Future ...
0
votes
1answer
229 views

Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?

even though I think I understand the hierarchy of roles in WordPress, I never really bothered creating my own user roles or custom capabilities. What I need to achieve is to assign a few capabilities ...
-1
votes
0answers
16 views

Get deeper class from url, pretty permalinks?

Im have a site with buddypress on it, and profilepages. Im trying to do individual styling (change header) for the profiles, but there´s no unique class to work with. I can get a body class from the ...
0
votes
0answers
9 views

SIte is loading slow after enabling W3-Total-Cache [on hold]

I enabled the W3 Total Cache plugin. I set Minify to manual mode. And, added just 2 CSS files for minification. But, after making these changes, it takes about 8-10 seconds to load the minified files. ...
2
votes
0answers
39 views

Display a query with multiple post types and same relationship on a single page

I am creating a client portal were my clients can maintain their projects and leave feedback in Wordpress. I have two custom post types called "Clients" and "Projects" and they each pull information ...
0
votes
1answer
17 views

conditionnal statement to show pagination

I'm using pagination in my website using wordpress, to navigate between posts from the same category. here is my code : <div class="article_single_prev_next"> <div ...
0
votes
2answers
355 views

Gallery post images on homepage?

I have a post with image gallery, it has 10 images. Can I get the direct link to the images in the post, so that I can display first 5 images on the homepage?
1
vote
1answer
20 views

Do I need to flush rewrite rules when creating new user if using custom author rewrite rules?

I am using custom urls for my author pages like this: http://site.com/author_name After I create a new user, that author page appears as not found; however, if I update my permalink structure from ...
5
votes
1answer
50 views

How to auto-translate custom user roles?

I developed a small plugin that adds (or to be more precise: first deletes then adds again) some custom user roles. Each of these roles is set up in a way like this: function ...
1
vote
2answers
29 views

does a translation (i18n) have to start from an english PO?

i was wondering: it seems a translation must be a translation from english. I mean, the starting file is in english, then you do translations from that. But what if say, I'm Italian? So the base ...
2
votes
0answers
16 views

Adding more options to the instance of an image. (Attachment Display Settings)

I'm trying to build a simple reusable plugin for image presentation in Wordpress 3.9, and it seems I've hit a brick wall. I would like to be able to add a couple of options to the instance of the ...
-1
votes
0answers
8 views

BuddyVerified and BBPress/SimplePress Forum Integration [on hold]

Does anyone know if the buddyverified plugin for buddypress can be made to work with simplepress forums or bbpress forums. I need the verified avatar icons to show in all areas of the site. Thanks.
1
vote
2answers
36 views

Renaming the Twenty Fourteen Wordpress theme

I know the benefits of creating child themes, but it in my case I really would like to create a theme based upon another one without any dependencies to a parent theme. I tried to use a sed command to ...
0
votes
1answer
84 views

Using Jquery submit with ajax request

When the user clicks the 'submit' button on my form, I would like 'this will be echoed back' to be displayed within an alert. The only JS console error I get: Failed to load resource ...
1
vote
1answer
31 views

How to show Y number of custom posts after every X normal posts?

I have a loop within a loop. I figured out how to show all or X number of custom posts after Y number of normal posts. I also figured out how to show 1 custom post after every Y normal posts. How do I ...
0
votes
1answer
2k views

how to implement a language switcher widget / plugin for users

I'm needing to create an option for the users to change the language of the site. So, for example there would be a dropdown with languages that the user can choose from and this would change the ...
0
votes
1answer
14 views

Custom Background default color not changing

I need to set several default states for a theme's background. The idea is that the background changes upon choosing a color scheme. Everything is working and changing EXCEPT the background color. The ...
1
vote
1answer
23 views

How to get the post content from a category on my homepage

I'm trying to get posts with a specific category to show in a box on my home page. But ive only been able to get one post on my homepage. How can I make this work in the code below? With getting the ...
0
votes
0answers
12 views

Infinite Scroll Not Working

I am using the Focus theme and trying to get infinite scroll from jetpack to work on it but am having issues. If you scroll down, older posts don't load onto the page, but there is a footer that pops ...
5
votes
3answers
427 views

Localization: I want the backend: english and frontend in defined language

I'd like to have the backend of Wordpress in English and use a different locale for the frontend so far I figure out perhaps I could do it by setting in the wpconfig the locale I want to use in the ...
0
votes
1answer
396 views

Why my meta boxes won't show in front post page?

I see it everywhere: in single post, in category archives etc, but in front page post not. I display the metaboxes in this way: <?php if (get_post_meta($post->ID, 'test_1', true) != '' ) { ...
1
vote
1answer
38 views

Custom Post Types strange pagination problem

Have a strange problem with pagination, the query work fine when I'm in homepage, but if click for the next page I get a 404 error. Disabling permalinks settings, I saw that in the query string (when ...
0
votes
3answers
1k views

How to use next_posts_link/previous_posts_link for custom post types paginate?

I have a question about usage of previous_posts_link/next_posts_link. Is it possible to use it for custom post types too? I like to hear from you. Thanks in advance. Casper
0
votes
1answer
18 views

Set cookie for visitor

I'm writing a new plugin that will allow visitor to vote. After a visitor rated a post, I'd like to block double voting. I think the better way to do it is using cookie, but of course I can't insert ...
0
votes
0answers
18 views

wordpress title and category as result

Please have a look a the code below!Its from a WordPress plugin. How can I get the result $search = post title (space ) category name // Relation: Post title. if( $relation === 'posttitle' ) { ...
0
votes
3answers
20 views

the_post_thumbnail scaling not hard cropping

Lately I wanted to upgrade my blog with featured images/post thumbnails. I'm using a custom theme build on the roots theme (this is not a roots theme issue, I believe). The image I upload is 1024x768 ...
5
votes
2answers
1k views

How to provide translations for a WordPress TinyMCE plugin?

I know that I can get my translations into JavaScript doing: $MyTranslations = array( 'translation1' => __("Some String 1", "MyTranslations"), 'translation2' => __("Some ...
0
votes
1answer
680 views

woocommerce select payment method for each product or category

I want create method payment different for each product or category in woocommerce , for this i create this function for by one side , create 2 fields and save informations for each product from /// ...
0
votes
3answers
414 views

Why doesn't this page query work?

This should be easy. I need to query to display one page in a tab. Just pull one page by one query, but I'm doing something (maybe lots) wrong here: Edit: Hah. I forgot the_content It works now. ...
8
votes
6answers
4k views

How to *remove* a parent theme page template from a child theme?

I'm using the TwentyTen theme to create a child theme, but I can't seem to get rid of the 'One column, no sidebar' page template that is in the TwentyTen parent theme. I thought just copying it over ...
1
vote
1answer
106 views

Connecting Wordpress gallery to custom categories (taxonomy)

I want to use the Wordpress gallery to show all pictures of one category in a gallery (on a fixed page), which I do not have to update all the time by inserting the pictures manually. So I added the ...
1
vote
1answer
27 views

Can't update WordPress, need to reboot the VPS

After I moved to a new VPS (Ubuntu), I can't update the WordPress. When I click on the "Update Now" button, it shows upgrading progress messages and it shows "Welcome to WordPress 3.9" (Now I'm on ...
0
votes
0answers
13 views

permalink overwriting after save post

I'm developing a plugin to sell tickets for live courses. Using a shortcode [ticketform] I show a form that takes customer data and if everything is ok --> go to paypal --> thank you page. Within ...
0
votes
1answer
14 views

Upload file without attaching it to a POST

I've brought files with html file field and I'm trying to attach file to wordpress attachments using media_handle_upload $attach_id = media_handle_upload ( $file_handler, null ); the I've specified ...
1
vote
0answers
13 views

array of objects to do_action, callback gets singular object?

So I was passing an array of objects through an action today, no biggy, and things were working fine. Until I was iterating over one of the arguments to a callback and started getting errors. The only ...
1
vote
1answer
38 views

wp_enqueue_script registers script but does not create html tag

I wrote a plugin that enqueues a script and stylesheet only on a specific admin page. It works in my dev environment and multiple production servers; however, was introduced recently to a site that is ...
0
votes
1answer
266 views

Manual excerpt length on recent posts slider

I need to change the character/word limit of manual excerpts which will be displayed on recent posts slider. I think it's 55 characters right now without counting spaces and punctuation marks. Am i ...
0
votes
2answers
18 views

How to register and enqueue JavaScript files without breaking plugin dependencies?

In theme development, what is the best way to register and enqueue JavaScript files to avoid problems with plugins? I want to create a theme which uses scripts like jQuery, Masonry and so on. I ...

15 30 50 per page