0
votes
1answer
3k views

Display data on same page as form without refresh

I am not sure if there is something about wordpress, or what I am doing, but I can not get online tutorials to work when implementing in a page template. For example this ...
0
votes
1answer
956 views

save_post custom post type ? $_POST not working?

i have this code. <?php add_action('add_meta_boxes', 'ct_meta_add'); add_action('save_post','ct_meta_save'); add_action('save_post','ct_parent'); // add meta functions function ct_meta_add() { ...
0
votes
0answers
15 views

Pagination in html table is not working

I have a custom page template and I found a a PHP snippet that create a pagination in html table. But the code is not working properly. UPDATE: I change the code. But still the code is not working ...
0
votes
0answers
9 views

How to set featured image from external url without downloading image

I want to set featured image of my post from external url and without downloading, I am using auto-post-thumbnail to generate featured image, but it save image to my server. Is there any method to do ...
0
votes
0answers
9 views

Can we filter posts on screen options?

I need to show posts depending upon screen option's values, which is a requirement of my client. I have researched this but couldn't find any solutions.
0
votes
1answer
521 views

wp-cron: freeze at “now”

sorry for the silly question. Briefly I have a wp (v. 3.5.1) blog using a heavily modified (by myself) theme. Everything works fine except for wp-cron. Listed jobs appears in (for instance) crontrol ...
0
votes
2answers
703 views

Video post format, extra content breaks video embed

I am using the content-video.php include to show the latest video post on my homepage. The include only shows the video from the post and not the rest of the content, which works well. My problem is, ...
-1
votes
0answers
18 views

Upload image from frontend and save it in a custom directory and DB table

I need to upload an image through a custom form on the frontend. I'm having trouble understanding the overrides in media_handle_upload and wp_handle_upload. What I want to achieve: Upload and crop ...
-1
votes
0answers
11 views

Display all authors of custom post type with specific role

I was wondering if someone could help me out. I would like to create an adoptions-page.php template file within my wordpress theme. This page will display all the authors that have the ...
1
vote
0answers
8 views

Social Links Menu displays icon instead of text (twentyfifteen)

EDIT: I posted too hastily. I just discovered that the solution to my problem is to bypass the regular Menus section and create a custom WIDGET, which can serve as a custom menus box. Below is my ...
0
votes
2answers
1k views

Make custom post type column sortable

My site has two custom types: Auction and Lot. Lots are connected to an Auction via the post_parent field. I added an Auction column to the Lots list in the admin area. function ...
6
votes
0answers
48 views
+100

Filtering multiple custom fields with WP REST API 2

I want to filter posts based on multiple acf custom fields with AND relation. Something like this: $args = array( 'post_type' => 'product', 'meta_query' => array( ...
2
votes
1answer
15 views

single-{post_type}.php is not loaded despite flushing rules

I have the following code to define my producto custom type post: add_action('init', 'custom_post_producto'); function custom_post_producto() { $args = array( "label" => ...
2
votes
2answers
794 views

Pagination/infinite scroll with WP_Query and multiple loops

I need that the main page of my site have 3 columns: - The first having the 5 most viewed posts; - The second with the next 5 most viewed posts; - The third with the most recent posts. I don't want ...
0
votes
0answers
6 views

Unique page URL redirect to file_get_contents() at domain

Ok, I need to take http://domain.org/page and redirect it to http://anotherdomain.com/ Here's the scoop... The page is in WordPress and is the actual page we are going to file_get_contents() and read ...
1
vote
2answers
1k views

Wordpress Defined Memory Limit

Running a dedicated managed server with 2 GIGS of RAM. How much memory can I define in wp-config.php Currently I have define('WP_MEMORY_LIMIT', '256M'); I suspect a plugin that resizes images ...
1
vote
0answers
6 views

migrating content from a single wordpress installation to a multisite

While there are similar questions for coming from several wp installations to a multisite installation I have a slightly different issue. I am unsure how to migrate a single site where there are 4 ...
0
votes
0answers
9 views

Not Able to Get Custom Post Type in Single and Single-custom-post-type

I have a custom post type called projectsCPT and I am able to display them on page-projectsCPT.php <?php /* Template Name: Projects */ get_header(); ?> <div class="container" ...
3
votes
1answer
901 views

Javascript WP Object Documentation?

I was working on implementing the media library within one of my plugins/themes. I found a nice tutorial (http://mikejolley.com/2012/12/using-the-new-wordpress-3-5-media-uploader-in-plugins/) that ...
2
votes
0answers
11 views

Have_posts(), foreach, template logic and performance advice

I have a template file at /parts/template.php which contains a post listing code like, echo get_the_title(); //same lines with my_render_function and i am using it at archive.php with this lines. ...
-1
votes
0answers
10 views

How do you hide a post->ID when being click?

How do you hide a post->ID when being click, but only to hide the own post? this what i have in mind: <?php $hide = $post->ID; ?> <a href="#" onclick="<?php echo $hide;?>" ...
0
votes
1answer
1k views

Dropdown parent link not working in mobile

I'm working on WordPress with Bootstrap. The WP Menu dropdown parent link is not working on a mobile device. Here is the JavaSript: <script> jQuery(function ($) { $('.navbar ...
0
votes
0answers
6 views

CartoDB embedding doesn't work

I added some custom php to my site in order to be able to embed a leaflet map using an [iframe src=""] tag. This works. More recently I've wanted to embed a CartoDB map. e.g. [iframe ...
-1
votes
0answers
7 views

Upcoming Events Only

I inherited this WordPress site and I've been asked to edit the Events page. I want to only show upcoming dates instead of all the dates. Here's the current code: <?php ...
1
vote
0answers
7 views

Change the RSS Publication Date to use a value from a custom field

I have a site that wants to order its RSS output by a date value in a custom field. I'd rather not create a new feed to do it -- how do I override the default feed date value?
0
votes
1answer
18 views

Pass arguments to function class with do_action()

I'm trying to develop a "simple" script where i can create a filename with a timestamp of the last edit. For this I'm trying to code a class – but I'm having problems to pass an argument to ...
2
votes
0answers
31 views

Case-insensitive add_rewrite_rules in Wordpress functions

Been hitting my head against the wall on this for a while. If I have a add_rewrite_rules like so: $aNewRules = array('my-books/?$' => 'index.php?pagename=my-books'); This works correctly; ...
0
votes
0answers
7 views

Splitting Repeater Fields in Advanced Custom Fields

So, I need to be able to split four repeater fields into separate columns for a layout I'm working on and I can't find one that has been able to work properly, or suit my needs. Essentially, I need to ...
-1
votes
0answers
10 views

Replace html class name part with php

I want to replace one of my plugin icon class name. The icon html is <i class="um-faicon-user"> and <i class="um-faicon-facebook"> etc. I want to replace all um-faicon part to fa fa and ...
1
vote
1answer
23 views

Order by meta_value in WP_Query

My orderby meta_value is not working, so I decided to make my meta_value descending from 5 to 1 instead. I'm sorting out a star rating based on the number of stars. If I set 'meta_value' => '5' ...
0
votes
1answer
695 views

Unable to locate WordPress Content directory (wp-content)

I have tried to update my plugins in wordpress-admin but for some reason i am receiving an error "Unable to locate WordPress Content directory (wp-content)" I have checked on my server and the folder ...
0
votes
0answers
17 views

tax_query not working for taxonomy slug

i have one custom post type 'game' and one custom taxonomy 'console', which is shared by 'game' and 'post'. Now I created a new PHP 'taxonomy-console' and I want to separately display posts from ...
0
votes
0answers
9 views

Plugin recommendation that is similar to search/reservations without the booking feature [on hold]

I am looking for a plug-in that is a cross between a search and booking plug-in without the booking feature. Basically something similar to when a user searches for a hotel or apartment. You select ...
0
votes
1answer
16 views

Move “Menus” link from Appearance > Menus to its own tab on left column Dashboard

I am working on cleaning up the WordPress Dashboard menu to make it easier for our client to use. How can I move the "Menus" link located at Appearance > Menus into its own tab on the left column of ...
-4
votes
0answers
9 views

How to force user to login when clicked on READ MORE for reading complete post ?

I want my user to login to my website for reading complete post when they click on READ MORE button, How can i achieve this ? Any piece of code or Plugin, please suggest, thanks in advance
-1
votes
2answers
13 views

Woocommerce: Show script in body tag when change order status to completed

I wan't to show script in body tag when I change order status to complete. This code dont work - I check source page code and dont see my script. Thanks for help. add_action( ...
1
vote
1answer
6k views

wp-admin url doesn't allow to login and redirects to same page

I am using Wordpress 3.6, the latest version. When I access login page for admin URL like www.example.com/wp-admin and I enter the username and password, Wordpress redirects me to the same page. But ...
0
votes
0answers
12 views

Why are all posts older than a certain date missing from filtered Post lists in wp-admin?

I'm experiencing a strange issue where all posts older than a certain (seemingly arbitrary) date do not show up in the Posts manager, but only when looking at a filtered view (by post format, ...
0
votes
1answer
12 views

Sharing one WordPress installation between several “sites”?

I'm running a VPS with Ubuntu. I've installed the LAMP-stack, and would now like to make a couple of blogs/sites using WordPress. I'm thinking about creating new users for each blog and making a ...
0
votes
1answer
23 views

How fetch_feed() works?

I would like to know that how fetch_feed() works extactly? From the Codex: fetch_feed() caches results for 12 hours by default. That means if I use fetch_feed( 'howtogeek.com' ), it reads the ...
2
votes
2answers
21 views

Metabox Not Showing on Custom Post Type But On Pages and Post

I have a Custom Post Type like function cpt_Projects() { $labels = array( 'name' => 'Projects', 'singular_name' => 'Project', 'menu_name' ...
0
votes
1answer
10 views

Which Apache-modules must I enable?

I'm running a VPS with Ubuntu 14.04.4 x64 and Apache 2.4.7, and would like to set-up a WordPress site on it. Which apache-modules must I have enabled - and which should I enable (eg. for cool ...
0
votes
1answer
454 views

Custom Function for Portfolio Archive Template With Conditonal Tag

Can't work out which conditional tag to use to add a page title to the portfolio archive page which uses custom posts types. This doesn't work: if( is_archive('portfolio') ) echo '<div ...
0
votes
1answer
368 views

I need to disable Disqus comments pre-approval, but i can't find where

I've tried contacting Disqus support but they haven't answered. I need to disable pre-approval for comments but i can't find where to set that option. Could anyone help me? Thanks.
0
votes
1answer
22 views

Get posts and include taxonomy term

How can I return taxonomy terms within post data, from the same query. Currently I'm calling get_posts / wp_query and then looping over and calling wp_get_post_terms. Needless to say it thrashes the ...
0
votes
1answer
11 views

Remove Visual Composer Tab from Dashboard Menu

I have installed Visual Composer for a client and am now trying to remove the tab from the Dashboard menu. How can I do this? function remove_menus(){ remove_menu_page( ‘js_composer.php’ ); ...
0
votes
0answers
18 views

cookie check for password protected pages not working

I have a page that I have set up under the privacy settings to use a password. In the template file for that page I have the following code. global $post; if ( post_password_required($post)) { // ...
0
votes
1answer
21 views

Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge

So I am using jQuery and pHp together to send an email to myself whenever a user clicks on the update button of their Ultimate Member form. However, the email only sends when a user is using Chrome, ...
-1
votes
0answers
11 views

Problem Using Sorter Field in Wordpress Redux Framework

Okay -- perhaps I'm missing something, but I can't seem to figure this out. I just did a fresh (local) install of Wordpress and the only thing I have done so far is activated the redux framework ...
0
votes
2answers
63 views

WP_Query return highest number only

I have a custom post type with the fields Exercise and Tempo. Here is an example of how that might look: Exercise 1 - 100 Exercise 2 - 104 Exercise 3 - 96 Exercise 1 - 104 Exercise 2 - 110 Exercise 3 ...

15 30 50 per page