0
votes
1answer
10 views

Display Year and Month from custom field + Age Calculator

I have a custom field "DOB" on my custom post type which is in [Ymd] format. I want to compare that date of birth to current time and want to show "You are # years # months." I am able to calculate ...
0
votes
1answer
910 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() { ...
-2
votes
0answers
9 views

Carousel slider sliding single image in wordpress?

I am working on a plugin .I used carousel slider to slide images .But I want to slide single image on clicking arrow .I am looking for such result here is my slider code <div id="myCarousel" ...
-1
votes
0answers
11 views

I will like to create a welcome full-screen page m [on hold]

I am designing two websites under one domain and will like to do the following. 1. Create a full screen page with an image 2.No scroll bar 3. has two call to actions button at the middle that will ...
2
votes
2answers
828 views

WordPress 3.4 Permalinks Redirection Problem

A few years ago this was the permalink structure I had for my blog: /%year%/%category%/%postname%.html I changed these permalinks last year to this: /%category%/%postname%/%post_id%/ A ...
-1
votes
1answer
5 views

WordPress Multisite (Network) some site users added to main site users list as subscriber

We have installed WordPress Multisite (Network) and created some sites. On the main site admin > users, it displays some users from other sites listed as subscriber user. Please advice how this ...
1
vote
1answer
473 views

WooCommerce: Add content prior to or after checkout form

I'm trying to produce a message to appear prior to (or after) the checkout form on the checkout page (Example: https://susieoshandbags.com/shop/checkout/). So I did the following: add_action( ...
0
votes
1answer
31 views

How to get post content by calling ajax?

I am working on a plugin .I have a custom post type team.Custom post has four posts of different categories.I used this code to send post id of each using ajax. $(document).ready(function () { ...
-1
votes
0answers
8 views

Reset Wordpress Admin Url

https://blackhaat.com is my blog. I recently installed UserUltra and setup a login page using it. To do this, there was a shortcode to be put on a blank page. I did the same. Now, when my site was ...
-1
votes
1answer
8 views

Woocommerce 404 after chang default language

After change default language in Woocommerce from Dutch to English I get 404 errors. I also have installed latest version of WPML. 3 Languages are active: EN - NL - DE. When I edit a link to open an ...
0
votes
2answers
637 views

How to send form values from the script in functions.php and not from the form on my website?

I have a form on my website and depending on if the user check paypal or wire-transfer the form action should always go to functions.php where I have this simple check at the end of the file: if ( ...
-1
votes
1answer
42 views

SQL command to convert all tags in lowercase?

I'm looking for a SQL query command to convert every single tag in every post ever used to be converted into lowercase.
1
vote
1answer
27 views

Pagination causes error 404 when used with front-page.php

I am creating front-page.php. This page will display the latest featureed posts, and will also have pagination option to go to the previous featured posts. I wrote the code for frontpage as follows ...
1
vote
1answer
21 views

Storing posts from query and accessing later via AJAX call

To clarify the above question title, what I am trying to do is create a grid of posts, for which I am displaying a thumbnail of an image that is attached to that post. Then, upon clicking each of ...
1
vote
2answers
631 views

Update user meta of author when post content is viewed

I have a value that I'm trying to store as user meta for authors on my site. I need it to update itself every time the content of a post is viewed for that author. Here's as far as I've gotten but it ...
8
votes
1answer
93 views
+50

wp.media.view.ImageDetails - Save settings as HTML5 data-* attributes for image

What I finally want to achieve are extra settings added to the Image Details box, that will be stored in the image <img> tag as data-* attributes Example: <img src="..." ...
0
votes
0answers
8 views

WordPress form redirect after add_rewrite_rule

Two problems i got: automatically redirect from OLD url's to new one (eg. search form will redirect to old url and i need redirect to new one) - what the best method (htaccess, wp_redirect? now i ...
0
votes
2answers
678 views

Link to Portfolio page by id instead of name

I'm trying to make a dynamic button that goes to portfolio page (no matter what ID/name it has), it's currently like this: $portfolio_page = get_option('theme_portfolio_page'); $portfolio_pid = ...
-2
votes
0answers
8 views

Woocommerce does not update the amount after changing the currency

I am using woocommerce and WPML for the currency switcher At the product detail / product list, when I update the currency, the amount is updated too, which is functional and the current switch is ...
0
votes
2answers
3k views

Pagination with get_posts seems to work but links not showing

I've a custom page template where I want to query 2 posts from a post type and 1 post from another post type. I have it set up like this: $paged = get_query_var('paged') ? get_query_var('paged') : 1; ...
-2
votes
0answers
27 views

How to remove "Zerif Lite powered by Wordpress

I've changed the permissions of footer.php so I can edit the code, but I don't know exactly what I need to remove.
0
votes
1answer
898 views

How to get a value from wp_dropdown_user?

In the admin dashboard, I want to show a list of all users (done so far by wp_dropdown_users) and then take the selected userID and use it as a parameter in another function. :) Sounds easy eh. I've ...
1
vote
1answer
17 views

Edit meta data does't work with custom sql

I have a form that uploads posts to Wordpress, and at the same time I can edit things like the meta data afterwards. However using the Wordpress edit_post_data works fine but a custom SQL query won't ...
0
votes
0answers
9 views

Contact Form 7 Dropdown menu populated with post titles, pre selected from url

I'm using contact form 7 as my contact page and trying to populate a dropdown select menu with a list of the post titles. In addition to this if a user browsers to the contact page from a href link ...
1
vote
1answer
2k views

Admin Menu - Highlight top-level menu when on a sub-menu page (without showing sub-menu)

This is the current situation: I am writing a plugin that has a top-level menu page The plugin also contains other sub-menu pages The sub-menu pages are not assigned a parent slug (thus they do not ...
1
vote
1answer
14 views

How do I customize my wordpress Admin Area?

I'm building a wordpress multisite which is aimed to serve as a blogging platform but I wanted to customize the admin area for my users by removing all the dafult widget. Please , Is there a wordpress ...
1
vote
1answer
22 views

Best method to make posts searchable, sortable and filterable - custom field, tag or category?

I'm wanting to create/modify either the existing post type, or create a new post type to be searchable, sortable and filterable by the following fields: Country from: Country to: Activity: ...
0
votes
2answers
2k views

How to add a custom filter in functions.php

I have been through the Wordpress codex but I can't figure out how to write a filter. I would like to use a filter called: 'wpseo_sitemap_' . $filter . '_change_freq'. It expects you to return one of ...
0
votes
2answers
65 views

WP_Query results stored in variables

I'd like to know if there is a way to store WP_Query results in variables that I can then go ahead and insert anywhere on the page outside of the loop. For instance, say I want to get the feature ...
0
votes
1answer
54 views

Finding the next 5 posts

On my single.php where I am calling my post I am wanting to run a query where I can catch the next 5 posts (chronologically). I know how to do everything except figure out a way to specify the 5 ...
0
votes
1answer
463 views

Taxonomy Category category.php not working

I have created custom post type, taxonomy and categorys. When viewing the category it seems to be using index.php and ignoring the WordPress template hierarchy. Any ideas why category.php, ...
1
vote
2answers
190 views

Get next and previous 3 posts in a term in single post page

I have a the following Custom post type: episode Custom taxonomy: series sub terms real deal -> season 1, season 2, season 3, etc. The terms are hierarchical, and the entire thing is ...
0
votes
1answer
254 views

In Custom page - next_posts_link Not working while previous_posts_link is working

I have a custom template which has a custom query. I am using this template to create a page (Not a front page) from wordpress. Since the page has multiple posts, I want to put a navigation..... I did ...
0
votes
2answers
89 views

Custom Post Loop in Archive returns same the_permalink

I've got the following code that is meant to grab the latest post from each of the provided custom post types ($customTypes), it works on the majority of pages of my site, eg here: ...
0
votes
1answer
536 views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: ...
0
votes
0answers
14 views

add <script data-pagespeed-no-defer> in wp_register_script function [duplicate]

I’m using PageSpeed on my website and it makes a huge speed difference in my website I have defer JavaScript on. And I’m facing an issue with a script that doesn’t work when deferred so I want ...
-3
votes
1answer
25 views

Advanced custom fields and post types

I've made a quick plugin to be used for one site only (over several domains, but same theme, plugins and content). On one of the sites I'm getting an error saying Warning: call_user_func_array() ...
3
votes
2answers
753 views

Full width layout for custom post type pages

I'm trying to remove a widget area called 'Primary' from a certain page on a site. This is the function where I manage the sidebars: //ADD CATEGORIES IN SIDEBAR OF SINGLE POST TYPE add_action( ...
1
vote
1answer
14 views

WooCommerce - Hook after Loading Variation in Admin Edit page?

In Product's Edit page, when we click Variations, we will see AJAX loading for all of its variations. Is there a Hook for when it finished? I want to run a script to add some "at-a-glance" ...
0
votes
1answer
1k views

wp_register() displays logged in user as site admin

I'm just working on a little hobby word-press site I have; <?php wp_loginout(''); ?> <?php wp_register( '',''); ?> In the top rite corner of my site, <?php wp_loginout(''); ?> ...
-4
votes
1answer
26 views

Header-main class

Can anyone please help? I am in a dire need of a kind-hearted tutor to guide me in customizing my WordPress site on top of the Twenty-Fourteen theme. Thanx in advance. SFN
0
votes
2answers
676 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 ...
1
vote
1answer
42 views

How to pass “get_the_terms_list” as shortcode to Visual Composer Grid Builder

I am trying to create a shortcode that returns the term list inside of Visual Composer's Grid Builder. I have read the docs here. My code is as follows: add_filter( 'vc_grid_item_shortcodes', ...
0
votes
1answer
14 views

wp.template() Not a function

When I console.log(wp) the object only includes: -wp.emoji -wp.heartbeat -wp.svgPainter Script is loaded in the footer and last in the DOM. What am I missing?
1
vote
1answer
29 views

Deploying Wordpress with Bedrock/Capistrano on Siteground - Composer returns “text/html” message

I've been using Bedrock (https://roots.io/bedrock/) for a while to deploy WordPress websites, but have encountered some issues when deploying to a Siteground.com shared server. The issue is with ...
0
votes
2answers
545 views

Removing height and width from images with a caption

I am using WordPress with Twitter Bootstrap 3 and have an issue when it comes to images with captions. Images with captions are given a height and width attribute which stops them from being ...
0
votes
2answers
25 views

Custom Role with Own Page Edit Capability

I need to create a custom role that is only able to edit and publish his own page (page created by admin and afterwards assigned to the user with the custom role). I have successfully created the new ...
0
votes
0answers
26 views

Display 3 more recent / current / 3 less recent posts in category

What I'd like to display is: 3 posts more recent | current post | 3 posts less recent and be able to give this function a category, like (99), so it wouldn't be just 3 more recent posts published, ...
0
votes
0answers
5 views

Force non-ssl on WordPress RSS feeds in htaccess, using cloudflare

I have a site behind cloudflare's free SSL service. However I can no longer validate my RSS feeds at https://validator.w3.org because i get Server returned [Errno 1] _ssl.c:504: error:14077438:SSL ...
0
votes
1answer
423 views

Redirecting to page not found mulitiste

when you make a new site from the network admin panel, and then go to the site dashboard it comes up with a "page not found" message. I am working in localhost/mulitsite/ is the redirect url is ...

15 30 50 per page