1
vote
1answer
625 views

Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it

I'm trying to output a custom post type archive using a shortcode. Everything works fine except for the get_next_posts_link part. The weird part is that it's right next to a get_previous_posts_link ...
0
votes
1answer
5 views

Create a Page template selector page

I'm running around with an idea in my head that I would like to make but I don't really know how or where to start. In a custom theme I had to make serveral templates for one of my clients. I ...
0
votes
1answer
8 views

Wordpress Thumbnail compression depends on the server?

Different image weights were generated in different servers when Uploading images to Media. For instance, an original image of 2.1Mb uploaded to a server generated a 700Kb image, for the medium ...
0
votes
1answer
8 views

Using the media library for theme customization

I'm using Underscores to build a theme and I've added an image selector to the customization section, which appears just like the default Background Image section, except clicking 'Select Image' ...
0
votes
0answers
5 views

ACF Gallery in lightbox on click

I have created a gallery using the ACF gallery add-on, I can output the images using this: <?php $images = get_sub_field('gallery'); if( $images ):?> <?php foreach( $images as ...
0
votes
0answers
5 views

How to get Category specific archive

I am using archive calender(in sidebar widget) on category.php. If I am on category template for cat 1 it show me the latest post of that category 1 only and Archive Calender widget for that category ...
0
votes
1answer
13 views

add_action and do_action

I am trying to hook a function to wp_head that adds some meta tags, but I does not work correctly. Here is my code: add_action( 'wp_head', 'add_meta_tags' , 2, 1 ); ...
1
vote
0answers
7 views

infinite-scroll for 2 fixed height containers

I have 2 fixed height columns for 2 different post-types. The goal is to get the infinite-scroll to work in both containers. I know that the JetPack infinite-scroll container parameter uses ID value ...
0
votes
0answers
7 views

Failed media upload: “The uploaded file was only partially uploaded.”

I am running Linux CentOS 5.8 and I have my web pages using WordPress 4.0. I am trying to uplad jpg photos to server via WordPress, but it randomly fails. I uploaded few photos, and then I get ...
0
votes
1answer
12 views

Show recent published posts

I want to list recent published posts of my wp blog and exclude certain posts of some categories. The following code works fine, 10 recent posts are listed and posts in the listed categories are ...
0
votes
2answers
425 views

Show count of all comments by meta_value from a users posts

I'm trying to display the total number of comments for a users posts limited to a comment meta. I've tried using both get_comments() and WP_Comment_Query() but I get the same result of "1" for the ...
0
votes
0answers
4 views

How to let users personalize their content?

I want to create a highly personalized site for my users. However, I haven't come across any tips or solutions in my searches. Are there any plugins, widgets, etc out there that would let each of my ...
0
votes
0answers
3 views

Converting WP Page to use full explicit paths?

I'm integrating a 3rd party product db/search feature into an existing/live Wordpress website using the vendor's Remote HTML Framing Code template. They are asking me to "convert all paths to full" ...
-2
votes
0answers
12 views

I want custom post template?

Hey I want to have some attributes in my post template by default, like when I click add new post, i want to have by default Mail subscription and more...
0
votes
2answers
511 views

WP Query - duplicated posts once including tags in search results

I running WordPress on IIS & SQL server. As some of the plugins do not work correctly with DB ABSTRACTION I am using a lot of functions.php filters as so on. To make my search results include ...
0
votes
0answers
8 views

Why are default comments deprecated?

I am developing a theme and, after calling comments_template(), noticed that "Theme without comments.php is deprecated since version 3.0". I created a comments.php in the root of my theme and copied ...
0
votes
0answers
5 views

How to search with filleting custom taxonomy and custom fields

I wanna explain about my search box, actually what i want to make. Ive a search input and few check boxes to filter the search result. i need to search like this : [Country1] AND ( [venue1] OR ...
0
votes
0answers
4 views

White screen of death after failing on plugin install

I've tried to install the W3 cache plugin but during the activation it started to file because of permissions. I changed the permissions to make W3 cache plugin working. After I run the plugin test ...
0
votes
0answers
3 views

User registration and activation email in custom form

I have implemented a custom login and registration form in WP as mentioned here. User can now register but can not login until admin approves that user from backend. I need to implement admin ...
0
votes
1answer
24 views

Page to show a link to every file in an directory

I have a file on my server with a large number of PDF files in it (more than 100) and I wish to have a page on WordPress that shows a link to each of these files (say sorted alphabetically by the name ...
-1
votes
0answers
9 views

Advanced Custom Field (ACF) conditional logic on dropdown selector

In Advanced Custom Fields (ACF) , I created a dropdown selector that list my taxonomies and I'd like to add a conditional logic on a term. My list is : Taxonomy1, Taxonomy2…, Other In backoffice, I ...
1
vote
1answer
55 views

Loading all files within a directory

I've made this little function which I'm wanting to call all the files within a directory. I don't think the glob() == false would work though. I'm new to this function so not aware of all ...
-1
votes
0answers
26 views

woocomerce paypal advanced keeps going to sandbox when LIVE

I have a site using woocommerce plugin, and Paypal advanced as a payment setting. Everything works fine if you get to the last step and fill out your credit card information to be processed by Paypal, ...
4
votes
1answer
3k views

how to upload and allow downloads of .mobi and .epub formats

I have downloadable products for sale. I have created custom meta boxes to hold the file data I need, it allows me to upload fine to the custom meta the .doc and the .pdf files... However when I ...
0
votes
0answers
4 views

Wordpress import issues - “Internal; server error” when trying to import .xml

I have persistently had the same issue over the past week; when I try to import my exported .xml file from my old website, and onto the new one, I get a 500 internal server error. I have tried ...
-1
votes
0answers
8 views

Gravity Forms occasionally sends user to Paypal Sandbox

I have gravity forms on a live website, which goes through to Paypal upon form completion. Usually this works fine, but occasionally it sends someone to the Paypal sandbox and won't let them complete ...
0
votes
0answers
2 views

Partial text search custom taxonomy

I am trying to do an autocomplete field that interrogates the database finding a custom taxonomy but can't seems to figure out how to achieve this. Would i need a custom query?
1
vote
1answer
4k views

how to make custom bulk actions for a WP_List_Table (core class)

I am using the WP_List_Table class and I added the links for the actions like this: function get_bulk_actions() { $actions = array(); $actions['approv'] ='<a href="#">'.__( ...
0
votes
0answers
17 views
+50

Sorting terms individually for each post

I have a custom taxonomy named author containing multiple terms. The default output order in the front end is alphabetically. But I like the authors to be ordered individually per post, e.g. First ...
0
votes
1answer
10 views

Programmatically change post visibility on save_post action return a 500

I'm trying to change the post visibility for my custom post type. On the edit.php screen the user can use a custom field to set the post type to normal or extended. That field shall work as ...
0
votes
0answers
12 views

orderby multiple meta keys and meta values

In wordpress, I have posts with meta key "country" and meta values: "usa", "france", "spain", "venezuela" etc... I have the same posts with meta key "rating" and meta values from "1" to "10" I would ...
1
vote
1answer
355 views

Wordpress choose wrong database

I have 2 databases. When I include the database connection (with a include('filename.php');) wordpress acts really strange. I can't login, the wordpress username and password is right but it tries to ...
0
votes
0answers
10 views

Auto link files in directory [on hold]

Looking for a plugin, which automatically list files as downloadable links after scanning the specific folders for mew uploaded files. Users will upload daily reports through FTP access, with ...
0
votes
1answer
10 views

Upload mobi and epub file in the MEDIA of WP

How can I upload mobi and epub files in the MEDIA of my WP site? I want customers to be able to download my ebooks in the epub and mobi version also, not just in PDF !!! I know there is an HTML code ...
0
votes
0answers
25 views

How do you add content to a WordPress sub-menu dependant in its parent?

What I'm wanting to achieve is this: A submenu with content showcasing 1 product from each category after the links In the submenu. I am trying to use the WordPress nav walker to add the content ...
0
votes
0answers
5 views

Removing items added by Plugin “Add Descendants as Sub Menu items”

I would like to get help from you guys on how to remove or limit the submenus created by the plugin named "Add Descendants as Sub Menu items" For example: Menu Page1 -> Page1a -> ...
0
votes
1answer
28 views

Render custom taxonomy query as single template

Im developing a "catalogue" plugin using a custom post type and a custom taxonomy. What I want now is to display the custom taxonomy as a single page. That means I if the taxonomy term "Popular Items" ...
0
votes
2answers
23 views

$_POSTing to and modifying the WP search results page

I have a site which uses post-name permalinks. If I use the built in search I am taken to the url www.mysite.com/search/searchterm I have a form which I am using as a custom search popup built into ...
0
votes
1answer
3k views

Error establishing a database connection when installing multiple sites locally

Initially I was using MAMP and had only 1 wordpress site running locally on my Mac. I've set: document root to: documents/mywebsites/mysite1 In phpMyAdmin I created a DB called: mysite1 wp-config ...
0
votes
0answers
11 views

How to make my taxonomy URL work?

I register my taxonomy ( Writer ) with this code : function writer() { $labels = array( 'name' => 'writer', 'singular_name' => 'writer', ...
0
votes
1answer
20 views

How can Wordpress be made more memory efficient?

Let's assume this is a site that has dynamic content pertaining to the user, or content that changes very often, so varnish is out. Let's also assume that there are no plugins and the theme is ...
0
votes
0answers
5 views

issue in writing vhost

In mydomain.net, I created my WP blog in a /wordpress directory ( /var/www/html/wordpress ) Initially I created an .htaccess file to add /wordpress to the URI request <IfModule ...
0
votes
0answers
4 views

Wordpress - wpdb query does not list same result as sql query

I have a very weird issue with wpdb which is freaking me out. My database has the following data: INSERT INTO `wp_clb_likes` (`id`, `post_id`, `user_ip`, `time`) VALUES (5,11511,'::1','2015-01-25 ...
0
votes
0answers
15 views

Creating an empty page in custom post type

I've registered a CPT with the labels 'all_items' and 'add_new'. Now I need an empty page for custom content. It should be a page who the admin can analyze data from a feedback form that customers ...
1
vote
0answers
8 views

post_parent is 0 when uploading new files

I have a custom-type post I'm trying to attach some audio/wav files to using the wp-admin UI. When I upload the new files using the Add Media popup those get saved and embedded into the post just ...
6
votes
2answers
18k views

How to create a custom search for custom post type?

I have a search field for the blog posts, but I need an other for a custom post type. How can I create this custom search form with a different search result layout?
0
votes
2answers
865 views

Saving Custom Post types and fields to a custom table

I have a project in which I am trying to import a large amount of data into a WordPress installation and from that data, create pages on my site (as a custom post type). Since these pages will be ...
0
votes
0answers
3 views

Why does wp_remote_fopen return false?

I am getting false when I try to $json = wp_remote_fopen( dirname(__FILE__). '/webfonts.json' );. On the other hand, I am getting correct results when I try to $json = file_get_contents( ...
0
votes
1answer
10 views

Wordpress custom plugin ajax request not working

I wrote a jQuery ajax request. I've read the documentation regarding ajax requests and frankly it's not working for me. I got it to a point that it is hitting the function and returning something. ...
0
votes
2answers
27 views

What is the best way mark entries as featured?

In quite a few wordpress projects I have a request in which Projects (or other post type) have to be featured in the Portfolio page (or other listing page) instead of the default date sorting lists. ...

15 30 50 per page