0
votes
0answers
41 views

I am trying to call external database recieving error

My case is different from the case defined here .. I am calling an external databse in my functional.php file by this method function newdata() { $newdb = new wpdb("onlinedu_newuser","oeb_new%...
2
votes
1answer
325 views

previous / next post with thumbnail

I've got another question regarding next / previous post. At the moment I'm working on our portfolio with several items. Each item is a post with a title, category & featured image. When viewing ...
1
vote
0answers
73 views

Why don't posts show up in my categories on the frontend?

The posts in a category don't show up in their category pages, like this one: http://www.kaerumusic.com/portfolio-category/japanese/ . On this page, ( http://www.kaerumusic.com/artists/ ) you're ...
1
vote
1answer
25 views

How to dropdown custom taxonomy?

To make a dropdown list from categories I can use wp_dropdown_categories function. http://codex.wordpress.org/Function_Reference/wp_dropdown_categories But how can I do the same thing but for my ...
1
vote
1answer
346 views

what are the chmod rights recommended to give for every folders of wordpress projects

When deploying a wordpress project on a server , what are the rights to set for each folders and files of wordpress for it to be safe and fonctionnal?
1
vote
1answer
479 views

Custom profile field with birthday. Troubles with <select>

I made custom profile fields for birthday data. function my_user_field( $user ) { $birthday_day = esc_attr( get_the_author_meta( 'birthday_day', $user->ID ) ); $...
3
votes
2answers
384 views

is there a simple way to list every templates / php files used to generate a specific page?

To customize a theme , it is not always easy to trace every files that are used and find out which one do what . For example i' like to find out how my menu is generated so i can add some conditions ...
2
votes
1answer
217 views

Parent page for CPT

Alright, there's been numerous topics about this, but it doesn't seem to work for me. I have one normal page, called "Resources". Then I have several Custom Post Types. One of wich is "Video's". I ...
2
votes
0answers
444 views

Wp_localize_script from Shortcode [closed]

I've been trying for hours and tried several answers from here and Google but still no luck.. need help. I am making a shortcode (slider) and trying to execute a javascript file (for the slider's ...
1
vote
2answers
819 views

Edit custom HTML page from WP admin dashboard

I needed to make custom HTML page in root which will not use default wordpress theme and show content and I linked it on menu as custom links. So in front end everything perfect. But this page is not ...
1
vote
0answers
121 views

Hierarchical custom fields

I need to display press statements as a custom post type ("statement"). Associated with each statement post type is one or more Authors, which is currently implemented also as a custom post type ("...
2
votes
2answers
140 views

How to create a word press user with hashedpassword

I have set of user data from another wordpress site and i want o create users for each of them in a another wordpress web site..,it is works fine with wp_insert_user($user) but problem is the ...
1
vote
1answer
639 views

How can I make use of WP Mobile Detect conditions from within a plugin?

I recently downloaded the WP Mobile Detect plugin and integrated it to my theme (the original mobile detect library I include from the theme folder and the matching WP-functions I pasted directly into ...
1
vote
2answers
48 views

Menu Limitations

I am coming here for advice mainly, because I am stuck on what to do next. Within my latest project, I am using Wordpress at the backbone, as a fully fledged CMS system. I have styled every single ...
1
vote
1answer
109 views

Use wordpress functions in another PHP file

I have created in my theme folder a PHP file named gallery.php. In this file I want to use WP_Query function, but I can't do this because it shows error. Is possible to do this? Thanks in advance!
2
votes
2answers
72 views

Display different custom post type each week

I have a project where I need to display an alternating food menu each week. i.e. menu1 on week1, menu2 on week2 then back to week1 etc. I've created custom post types for each menu (menu1 & ...
1
vote
0answers
237 views

Hook in to add new post link wp admin?

How can i customize the Add new post link or how can i add my custom parameter in add new post link like http://www.test.localhost/wp-admin/post-new.php looks like http://www.test/wp-admin/post-new....
1
vote
1answer
42 views

Removing customise fields during plugin uninstallation

I created a plugin that insert a field on the customise theme options. Since I use add_action( 'customize_register', 'myregister' ); to create the customise, should I use remove_action( '...
1
vote
0answers
216 views

why breadcrumb has wrong orders?

Here is my code: function the_breadcrumb() { if (!is_home()) { echo '<a href="'; echo get_option('home'); echo '">'; bloginfo('name'); echo "</a> / "; if (...
13
votes
2answers
2k views

How to load wp_editor via AJAX

Does anyone know how o load wp_editor via AJAX in WordPress? My markup and editor is getting loaded properly but editor controls are not getting loaded properly, it may be because Javascript is not ...
1
vote
0answers
56 views

Could be a namespace conflict (?) with login form and register form on the same page

I have created a "My Account" page template for WP 3.5.2 that displays certain custom data if a user is logged on. If not, the page displays a login form and a link that opens the register form in a ...
1
vote
1answer
120 views

Version control with a team of non-developers

At work we have decided to redo our website from scratch since over the years it has been plagued with no version control or dev site, plugin inconsistencies, etc. The team who created the current ...
1
vote
0answers
1k views

Why is json_decode failing?

I'm trying to determine if this is related to my having the latest version of PHP on my server while using the latest version of Wordpress. Or if I'm just doing it wrong: Here's my function that is ...
1
vote
0answers
73 views

Removing Parent Page URL While Keeping the Navigation Intact

So here is the current format: site.com/parent-page/child-page/ - example 0 Child-page is ranking higher than parent-page, which is not what I want. So, I have a solution. site.com/parent-page/ - ...
1
vote
1answer
69 views

How to add images to a post without inserting them into the content area of the post editor?

I'm building a site where I need to be able to add multiple images to a post, but not have them in the regular content of the post. These images will be used in a gallery above the post. My client ...
0
votes
1answer
434 views

Creating a related posts section in wordpress inside a default post

I'm trying to create a related posts section in my custom theme. The objective here is if the user views a post from a certain category it will also show all the posts from that category below. I have ...
0
votes
1answer
38 views

Inserting Media to WordPress Posts

If I insert an image to a WordPress docuament via "Add Media -> Insert from URL", and after submitting the URL and inserting to my post, is the image linked to my page or copied to my site? Thanks.
0
votes
3answers
3k views

Hide post meta data on a specific category

I'm using the Canvas theme from Woothemes, and their framework (obviously.) I built a child theme and have my custom CSS segregated in a custom.css file in that directory. I've made some changes to ...
0
votes
1answer
168 views

WP Ecommerce: Display the “Order Notes” as column in the Sales Log [closed]

I have the following function that adds a column in the Sales Log so that I may show the Order Notes. Adding the column is good and showing the id of each item ($item->id) as test is good. Where I am ...
0
votes
1answer
77 views

Control Loop Within Loop

I am attempting to control a loop I have within a loop. What I would like to do is display all post and have a custom post type inserted every 3 post. So it would be like this "post post post CPT post ...
0
votes
1answer
18 views

Why are only inactive plugins showing?

Pretty much sums it up. On the plugin page, only the inactive plugins show.
0
votes
0answers
22 views

Admin area error because of theme?

I'm working on a new theme system. In the functions.php I include the wp-config.php file. // Include the config file require ('wp-config.php'); It works fine on the front end of the site, but in ...
1
vote
1answer
181 views

Redirect outside WP after login

I have http://example.com/admin.php There I check whether the user is admin or not. If not, I send the user to the wp-login page like this: blog.mysite.com/wp-login.php?redirect_to=http%3A%2F%...
0
votes
1answer
1k views

Woocommerce Subscriptions - Customer change subscribed product after placed

Im using Woocommerce, and the Woo Commerce Subscriptions plugin, along with a bunch of others - creating a members only / subscription based ecommerce site. The best way to highlight what I'm trying ...
0
votes
1answer
68 views

Show uploaded images in full size

I have a very simple template where I am showing images. The code looks like this: <?php /* * Template Name: Portfolio */ ?> <?php get_header(); ?> <div class="row"> <...
0
votes
0answers
147 views

Images showing up in editor but don't show up in front end

The images showing up on the front and post sections (under the fold) aren't featured images, but the first images in the post. The pictures show up in the back end, but are supposed to appear in the ...
0
votes
1answer
50 views

WordPress Customize panel - accessing the values

Here is the code I'm using to add the section to the Customize panel. function apple_customize_register($wp_customize){ $wp_customize->add_section('apple_footer', array( 'title' => '...
0
votes
1answer
417 views

IE 301 Redirect Issue - WordPress [closed]

Hoping someone might be able to help... I don't think this is a WordPress issue, hence posting here instead... I run the latest ISPConfig version, with Apache and MySQL, and have an odd issue with a ...
0
votes
1answer
598 views

Cropping images from top center using Jetpack Photon

I am setting up a website gallery where the uploaded screenshot is 1400px wide and height varies. On my post index page, I need to display a thumbnail of only 900 pixels by 600 pixels. However this ...
2
votes
1answer
364 views

Add post dates from child theme and change font size on homepage post

I know this is not difficult. I know it is supposed to be in the style.css in the child theme, but no font size I change seems to make any difference. The titles of the posts on my homepage never. get....
0
votes
1answer
198 views

How to show an image popup when one clicks on an image thumbnail?

I have created a Gallery View shortcode plugin. I wanna add an feature to that which is - Whenever someone clicks on any image in that gallery, that image should get open in a stylish popup window. ...
1
vote
1answer
108 views

Can I force all uploaded images to be reduced in quality?

There is a blog where high quality images (300KB at 800x550) are being uploaded and embedded at Full Size. Wordpress will just use the exact uploaded picture when you embed at Full Size. This makes ...
0
votes
0answers
14 views

Paginate template name

I want to make pagination for posts. I am using posts_nav_link() in my archive.php to make links to previous/next posts and first ten posts are shown well. However when I click on newer posts link, ...
0
votes
1answer
77 views

WP Rewrite for a custom variable

I know there are dozens of posts on this, but (I'm embarassed to say this) I'm having a rough time following them. My goal here is to have /resources?audience=teachers become /resources/audience/...
0
votes
1answer
197 views

Displaying All Parent Pages as Featured Images

Here is a look at my current code to display all "children" pages of current post_parent (Also would be helpful to know how to display custom parent pages as well...) <?php $args = array( '...
0
votes
1answer
1k views

update_post_meta not working in plugin

I am trying to update post meta for a voting plugin. Specifically it calls update_post_meta() on an ajax request. Here is the code: function add_settings_menu() { add_options_page('Contested ...
2
votes
1answer
1k views

Get post type from taxonomy or category page

This might be somewhat backward, but how can one get the post type being displayed on an archive page? Alternatively, how can one get the post type associated with a given taxonomy?
0
votes
1answer
130 views

Meta Box Value not saving / populating?

Ok, I have a meta box setup now that populates with the all the registered post types. That part works fine. But, upon selecting an option in the dropdown list, and saving / updating, the value ...
0
votes
2answers
74 views

Javascript not loading on certain page

My Javascript doesn't seem to get called on this page called news, this uses the default post custom type in wordpress. Every other page that uses's this javascript is a custom post type I've ...
0
votes
1answer
64 views

How to grab a specific page of content from paginated post?

In my case I've got to create articles where each article has a custom, unchanging "header" part far too rich for the title and the excerpt (it's to contain image, media etc), and then a few different ...

15 30 50 per page