0
votes
0answers
3 views

How to debug “You do not have sufficient permissions to access this page”?

The error You do not have sufficient permissions to access this page when trying to access wp-admin can result from many causes. How can I debug effectively what is causing the problem? Is there any ...
0
votes
0answers
10 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
0answers
16 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 ...
-1
votes
0answers
12 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
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
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" ...
-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;?>" ...
-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 ...
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. ...
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" => ...
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?
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
11 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 ...
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 ...
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 ...
-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 ...
-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
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
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
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)) { // ...
-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
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 ...
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
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 ...
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
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 ...
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 ...
-2
votes
0answers
14 views

Is there way to check website is WordPress or not? [duplicate]

Is there way to check website is build by WordPress or not? URL : http://mashable.com/ - Return True URL : https://google.com - Return False
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
0answers
16 views

Carousel with 4 Items per Slide | Custom Post Types | Bootstrap

I am struggling with the Carousel Items - I want to show up 4 Items (custom posts) per slide. What did I wrong? And the other slides (slide1 and slide2) should only be displayed if so many post types ...
0
votes
0answers
9 views

Change update interval of wp_cron event without having to reactivate plugin

I recently wrote a plugin: Host Analytics.js Locally. It allows the user to self-host Analytics.js and updates it automatically by scheduling an update-script in wp-cron and runs that daily by ...
0
votes
0answers
14 views

Problem with AJAX in wordpress plugin

I write some plugin. I trying to get some notes from DB and post it by AJAX. After sending of ajax request, php process data and trying to give some data to page, but data doesn't display on page. ...
0
votes
0answers
16 views

How to hide a post until its prerequisites are complete

I have two custom post types Exercises and Tempo Submissions. For each exercise, I have a field that contains an array of other exercises that are it's prerequisites. I also have an exercise field ...
0
votes
1answer
15 views

get_option in header.php not returning value from customizer

I've set up a new section in the customizer called Social Links, under which I've set up an option and text field control called Facebook. Here's the code in my functions.php: // SOCIAL LINKS ...
0
votes
0answers
4 views

youtube view count on embedded videos on wordpress? [migrated]

Hoping someone can help us sort out this issue. It's clear that we had about 1000 visits to a post today that contains an embedded youtube video. Visitors spent an average of 3:35 minutes on the page, ...
0
votes
0answers
12 views

Woocommerce - Order Data Export via Curl

I need the whole bunch of order data when the order was placed. I am using this script: add_action('woocommerce_payment_complete', 'custom_process_order', 10, 1); function ...
2
votes
1answer
17 views

Add Font Awesome Embed CDN Script To WordPress

This is my original code that pulled Font Awesome icons, which is placed in my functions.php file: wp_enqueue_style( 'prefix-font-awesome', ...
0
votes
0answers
4 views

List sub pages with custom field content converting image ID to URL

I am using the ACF plugin to create static (non-ecommerce) product pages. I am now making a page that lists all the sub pages with product name and the image added to the product_logo custom field. I ...
-1
votes
0answers
6 views

Can't view/edit orders on WooCommerce [on hold]

After moving to new servers when i try to view/edit orders i get this error: fatal error: Call to a member function get_items() on boolean in ...
1
vote
1answer
18 views

Echo tags used to describe the theme

I've got a plugin I am working on to return an instance of the WP_Theme object properties. The plugin essentially allows for a simple child-theme creation. /* Theme Name: <?php echo ...
0
votes
0answers
5 views

How to add specific menu items to specific sub-level <td> with walker?

I want create a megamenu with four columns on 2nd level submenu (inside div and table). When I add class col1 to menu items, display them inside <td id="c1"> and when I add class col2 to menu ...
-1
votes
0answers
6 views

-woocommerce- Adding multiple parent category to a Sub category? [on hold]

I currently have a client that sells door mats(for example) He is currently using the Woocommerce plugin for Wordpress and having trouble assigning parent and sub-parent category's. He has 2 parent ...
0
votes
1answer
16 views

Redirect Old domain & posts to new domain homepage

I am closing my previous site so i want to redirect old domain's homepage & all posts to new domain's homepage. I tried using Cpanel redirect but it only redirects homepage not posts. I want to ...
0
votes
0answers
24 views

Styling wp_link_pages after using <!--nextpage--> tag

I want wp_link_pages to return the the link to next and previous pages in a post, and then style those into buttons as shown here: This is the function I'm using: function custom_link_pages($args ...
0
votes
0answers
7 views

Popular posts with Varnish ESI

I am trying to get Varnish ESI to work with displaying the most viewed posts on a new blog I am working on. Here is my current script; In theme file: <esi:remove> <?php get_template_part( ...

15 30 50 per page