-2
votes
2answers
20 views

how to loop div with alternate same class in php wordpress

i have 5 class,2 with the same class,with same posts how to loop div with alternate same class in php wordpress using if,foreach,while()have_posts():the_post()and to display it. Can anyone ...
0
votes
1answer
13 views

Multiple Custom Post Type permalink issue

I have 2 Custom Post Type(Our Works and Case Study) in a WordPress site. If I add same postname(Pepsi) at my 2 Custom Post Type(Our Works and Case Study) the permalink will show given below: 1) ...
0
votes
0answers
7 views

Using category/pagename for Pages

I am using a plugin to assign Categories to Pages. I'm trying to set up a navigation that orders pages into categores. This works fine using the Menu Customization Options, but I can't set up ...
0
votes
1answer
25 views

wordpress using WP MVC: You do not have sufficient permissions to access this page

I am using wordpress 4.0, localhost, WP MVC for plugin development. I have a plugin named W2Store. It has three controllers, Countries, Currencies, Zones. All the three were mereged into one single ...
-1
votes
1answer
25 views

Can't sort custom column on user.php by number / meta_value_num?

Everything else works fine but it's still not sorting by number. Would just like to know what I'm doing wrong here Here's the code function add_user_columns( $defaults ) { ...
3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
0answers
6 views

Deactive certain plugin on post edit screen

is there any hook to deactivate certain plugins (which i choose) when I'm try to edit posts? I have plugin conflict and I want to deactivate one plugin when I edit custom post type items. Every other ...
0
votes
0answers
8 views

Wordpress plugin problem with encoding

Ok I made wordpress contact form plugin. Basiclly in form i have dropdown list of states loaded from database. In db i have country name in Romanian. For example Federaţia Rusă Polinezia franceză ...
0
votes
0answers
23 views

Function to bypass specific words in search?

Is it possible for a word to be skipped/excluded/ignored in the default search? For example if I could make it so that if I type the great thing in the url instead of '?s=the+great+thing' it will ...
0
votes
1answer
26 views

Custom taxonomy archive is visible to only subscibed users

I have a custom taxonomy (lesson) that helps divide posts and other custom post types between different views over the data. Now I have the custom taxonomy page expanded and visible. ...
0
votes
1answer
1k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
1answer
13 views

Get custom taxonomy name from custom post

I want to retrieve the category assigned to a custom post type. The problem is, I don't know in advance what post-type (hence, what post-category) I will get. I have 5 custom post types, each with a ...
0
votes
2answers
266 views

Relative path in wp_register_style not working

I have this function: function test_add_my_stylesheet() { wp_register_style( 'test-admin-style', plugins_url('../css/style.css', __FILE__) ); wp_enqueue_style( 'test-admin-style' ); } but ...
0
votes
0answers
8 views

Usage of wp_send_json_success and wp_redirect at the same time

I have to send the success response to ajax if user filled the form fields successfully or not on the client side and redirect to the other page which finalize his authorization at the same time on ...
-1
votes
0answers
28 views

How to hide child category custom post in search?

I was new in here . I want to hide my wordpres child category post in search page. When search my parent category Every post include those under Child category will be search out , and i hope there ...
0
votes
1answer
48 views

Hide child term posts on parent term pages

I have created a custom post "company" and custom category "company category". I have a question here, I want to hide child category post in primary category . Any suggestions?? Example : ...
0
votes
0answers
6 views

Compare datetime

I have a query to fetch all the posts that have status: publish and post_date <> post_modified. Query: select id, post_title, post_date, post_modified from wp_posts where post_type='post' and ...
2
votes
3answers
59 views
+50

How do I go straight to “Edit More Details” when clicking on an item in the media library?

By default, when I click on an item in the media library, it takes me to the Attachment Details page, e.g. .../wp-admin/upload.php?item=65. What would I need to edit to make it go straight to the ...
0
votes
2answers
341 views

Wrapping link and .sub-menu with wp_nav_menu

I want to wrap each sub-menu ul and the tag just before it with a div. I can create the opening tag using the 'before' attribute of wP-nav_menu like this: wp_nav_menu(array( 'before' => ...
-1
votes
0answers
8 views

Missing Templates - WP Post Template

I've been using WP Post Template fine for a project, now it does not show the custom post templates I have created when editing/adding a post. The widget is still visible in the sidebar though. ...
1
vote
1answer
28 views

Is there an earlier hook than login_head or login_enqueue_scripts?

What I have: A basic plugin that enqueues a style-sheet and JavaScript file to modify the log-in forms. The logo, colour scheming and other styles are affected. My problem: As the /wp-login.php ...
0
votes
1answer
28 views

Custom post type - how to name file?

I already have a custom post type working perfectly, except I want to hide single data view. for example www.domain.com/kalendar-radova is a list of things to do, but I dont want ...
0
votes
2answers
401 views

Wordpress Page Protect forwards to Admin Login

Once I upgraded to WP 3.4.1, the password protect feature stopped working correctly. The password submit form leads to /wp-login.php?action=postpass and displays the admin login screen. I've sought ...
0
votes
1answer
24 views

Wordpress Recent post only showing title

I'm new in wordpress theme development. I want to display recent posts via recent post widget. but when I active the Recent posts widget in wordpress admin panel it only shows the title but not the ...
1
vote
1answer
714 views

Placing Ads after every 10th Post with Infinite Scroll

I have to load a couple of ads, some normal html and two are java script. I've tried the PHP method of this: <?php $postnum++; if($postnum%10 == 0) { ?> <div id="topset"> <ul ...
0
votes
1answer
300 views

rewrite rules hierarchical

I want that my WordPress follow this rules: /productes/ a page with all products /productes/[category]/ a taxonomy-page with all products of the category /productes/[category]/[subcategory]/ a ...
0
votes
1answer
323 views

How to add a custom page template selector to a custom taxonomy?

I am trying to add the custom page template selector that can be found in the "edit page" screen for pages to a custom taxonomy. The custom taxonomy is product_cat created by WooCommerce. I am using ...
0
votes
0answers
9 views

Show posts of authors as 'unmoderated' until moderated

Is there any plugin available to show the posts by authors as "unmoderated" until it is moderated by admin or editor? I know that the posts by contributors are by default not published, but my ...
3
votes
2answers
422 views

Override user authentication with external credentials

I'm working on a site running WordPress along with a vBulletin forum. The user base is registered on vBulletin. I need to allow users to appear logged in on WordPress as well for the sole purpose of ...
0
votes
3answers
643 views

Not sure how to debug: Send specific users an email when posts are published

I've got the following code, which is supposed to run when a new post is published for the first time, check if a custom field 'specific_users' has data (this uses Advanced Custom Fields), and if so, ...
0
votes
0answers
8 views

wp_nav_menu - page template name as item class

Is there any way to display template name (or page-template.php filename) in each menu items' class? Maybe using wp_nav_menu walker? Specifically, I'm using standard menu call: wp_nav_menu( array( ...
0
votes
2answers
2k views

How to display child page from specific parent page in homepage?

How to display child page from specific parent page in homepage ? This is my page structure Home About Us Hotel Category Hotel A Room 1 Room 2 Hotel B Room 1 Room 2 Hotel C ...
-1
votes
1answer
32 views

Google Drive as CDN for Wordpress

I'm new to the CDN function and i couple of questions. When using CDN for a Wordpress installation, if a user uploads something by using the "Add Media", the uploaded files go straight to the CDN or ...
0
votes
2answers
1k views

Use a different template/theme if mobile only on home page

I have looked around and can not find anything that fully works for my issue: I want to be able to set the home page template on the fly when a user is visiting from a mobile phone but not a tablet. I ...
0
votes
2answers
170 views

List all anchor links on a page

I was trying to make a navigation menu of all the anchor links on a page (similar to wikipedia) but couldn't find out how. I tried to find a plugin that could do it, but they only listed the anchors ...
0
votes
1answer
251 views

Wordpress core responsive video not working with shortcode

I cannot get the video from Wordpress core to behave responsively. I'm using the following CSS: .videocontent { width: 100%; height: 100%; max-width: 1024px; margin: 0 auto; } ...
0
votes
1answer
6 views

Default taxonomy 'post_tag' added to CPT managing by custom role : nothing in the metabox

I've created a Custom post type, which a custom role can manage : it has only the capabilities for managing this CPT. When registering the CPT, I've set the argument : 'taxonomies' => array( ...
-1
votes
1answer
412 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...
3
votes
2answers
49 views

Portable Post Links

I quite often run into a situation where I develop a site on a staging domain, have my client fill it there with content, and then when everything's approved move it to production. Now, my ...
1
vote
2answers
3k views

How do I stop HTML entities in a custom meta box from being un-htmlentitied?

I have a custom meta box that is supposed to accept HTML, but the text I'm trying to input contains both double and single quotes (and ampersands), and it's messing up the saved data - each time I ...
2
votes
2answers
578 views

wp_nav_menu() mark current item ancestor of custom post type

This solution does almost what I want it to. Only thing is, I have my menu set up as follows: Menu item 1 Menu item 2 Custom post type 1 Custom post type 2 Custom post type 3 Menu item 3 ...
0
votes
1answer
253 views

Display MP3 as media using an URL from a custom field

I created custom field and placed this inside the loop: <?php echo get_post_meta($post->ID, 'ses', true); ?> But now the link is all text. I would like it to be like my theme does when I ...
0
votes
2answers
2k views

wp_mail() is not working on server

i am breaking my head from last 1 hour but not getting any idea that what's going wrong with my code... i am developing my own plugin and i am using wp_mail() function for sending mail in that but ...
0
votes
0answers
8 views

Bootstrap at Back end not working [on hold]

How do I enable Bootstrap for my theme option page. Bootstrap is working fine on the frontend.
0
votes
3answers
783 views

How to point my domain to a Wordpress install in a sub-directory?

I have recently been re-designed a client's website (whose website is - for example purposes - mywebsite.co.uk)/ I have developed the new website (a heavily modified wordpress install) in a ...
0
votes
1answer
42 views

Custom Role can't trash Custom Post Type

I have a post type that I set up some capabilities for and I attached them to a new Role, however, the role can not trash them. I'm not sure why though. Here is the portion of my array for the ...
-2
votes
0answers
12 views

What is the best way export Wordpress site to mobile applications? [on hold]

My theme have a responsive style and its good. I want create mobile application with this responsive style. Will iOS and Android. What is the good solution for this? I was research some technics ...
-1
votes
0answers
45 views
+50

Add content from URLs

I want to create many many news sources in admin panel. Also, sources will auto update. You can think like feedly.com system. And if I want publish that news in my Wordpress site. Is it possible? Is ...
0
votes
0answers
15 views

Merging qTranslate-xp and custom-post-widget and disabling multilingual only for pages

This question is about WordPless plugin development/tweaking/modification and as such as far as I can tell should meet the guidelines for posting on this site. My knowledge of WordPress development is ...
2
votes
2answers
415 views

Wordpress Loop - Style rows of posts differently

I am trying to adapt the Wordpress loop to style posts differently in rows that get infinitely smaller until all posts are displayed The concept here is to display posts in rows first row 1 post ...

15 30 50 per page