0
votes
0answers
6 views

The right loop for featured posts?

Which is the right loop to customize articles in this way? 1) first article, featured, with it's style 2) second and third articles, with same styles 3) all the rest with same styles
0
votes
0answers
4 views

Design: year of work creation: custom field, tax, something else?

Let's say I have to build a site for publishing old books and manuscripts or histories about those books and manuscripts. For many of them they knows a year of creation/publication, but for many ...
0
votes
1answer
5 views

javescript button to call custom fields data

I am trying to create this button for a custom field that I have o a website: http://www.w3schools.com/js/tryit.asp?filename=tryjs_myfirst <button type="button" ...
0
votes
0answers
3 views

Access Restricting Multi site while giving plugin and theme editing option

In a multisite environment, if site admins can add their own themes and plugins, they can also see other site files. Is it possible to restrict such access? I do not want one site admin to see options ...
0
votes
0answers
5 views

WC_product class in custom plugin not found

I am trying to make use of the WC_porduct class in my custom plugin but it throws the error; 'Fatal error: Class 'WC_Product' not found in:' I've added global $woocommerce, $wordpress; to the top of ...
0
votes
0answers
7 views

plugin first menu name different from first submenu using register_post_type

i made plugin where i had used "register_post_type" to create custom post taxonomy. problem i that my first sub menu is also name of my plugin how can i fix it Below i code add_action( 'init', ...
0
votes
0answers
12 views

Using esc_attr function

I want to translate some website to Spanish, and the default translation in 'Settings' doesn't translate everything. I notice in the code, that where the translation doesn't work there are functions ...
3
votes
2answers
34 views

Using filters and actions for plugin API?

I want to integrate a public API to a plugin that I develop. The usual way other plugins integrate APIs is to define some functions that can be called by any theme or plugin. However, I think this ...
0
votes
1answer
9 views

Sticky post of current viewing author?

How to show sticky post of current browsing author on author.php template? $sticky = get_option( 'sticky_posts' ); rsort( $sticky ); $sticky = array_slice( $sticky, 0, 5000 ); query_posts( array( ...
0
votes
0answers
8 views

How to tell theme customizer to save setting in my option table?

Default customizer is saving the options inside theme_mods_themename but my I am using Unyson options framework and my options reside here fw_theme_settings_options:themename I am able to use ...
-1
votes
0answers
6 views

Newsletter plugin which allows usert to choose frequency, category and which has double opt in [on hold]

I'm looking for newsletter (notifier) plugin, which has options like this: double opt-in (email confirmation), sends automatic information about new posts allows user to choose, how often they will ...
-1
votes
0answers
9 views

WP + Boostrap - How to hide menu after clicking menu item?

I am working on website wpweby.cz/sbeauty and it is based on Brew (http://danvswild.com/brew/) which is base on Bootstrap. When you take a look at my website on mobile and you collapse menu and click ...
-2
votes
0answers
6 views

Unscrambling serialized ACF data? [on hold]

I'm attempting to import some serialized ACF field data into my Wordpress site. I'd been using the WP CSV plugin to export/import the data previously, but somewhere along the line my serialized fields ...
0
votes
1answer
16 views

Why would this IF statement not work?

I've placed the following conditional statement in my footer.php file but it isn't working. I want it to show the footer on every page except for single.php and the services.php template: <?php if ...
0
votes
0answers
6 views

Moving WordPress Featured Image Box Below Title [duplicate]

I would like to move the featured image box just below the title field in the New Post admin. I tried the following code, but that just places it below the text editor. function ...
-1
votes
0answers
16 views

Child Theme is available, but live preview only returns a blank screen

I can see the child theme in admin, but when I click Live Preview it tries to load but only displays a blank screen. The parent theme loads fine doing a Live Preview. I have to assume it is the ...
0
votes
0answers
5 views

Permalink Structure /post/post_id/anything-goes-here

I'm trying to setup a permalink structure like so example.com/post/post_id/any-text-here. Which is kinda similar to how StackOverflow's permalinks to questions work. If the last part is changed it ...
0
votes
0answers
4 views

copy clipboard and open i new tab now works when admin logged in :zeroclipboard

1 am using below plugin : https://github.com/zeroclipboard/zeroclipboard copy clipboard and open i new tab now works when wordpress admin logged in, please can u guide how to fix issue i think it may ...
0
votes
0answers
16 views

Using wp_localize_script on serialized array in get_options

I am trying to use wp_localize_script in a plugin on a serialized array from a stored get_options value function ng_slicknav_scripts_styles() { wp_register_script ( 'slickjs' , plugins_url( ...
0
votes
1answer
19 views

Get most recent post for every term in a given taxonomy type

I'm looking for an efficient way to retrieve the most recent post from every term for a given taxonomy type. I found this question, which provides the same solution I came to on my own: $terms = ...
0
votes
0answers
7 views

Can't add user to blog on registration (Multisite)

I'm trying to add a users to a specific blog with a role chosen by the user at registration. I'm able to add the desired role to meta with this: add_filter( 'add_signup_meta', 'add_register_meta' ...
0
votes
1answer
18 views

Managing wordpress onepage menu

I am creating a onepage wordpress theme , and i have no idea about managing menus in one page themes (menu to jumping to sections with hachtag) . any idea ??
0
votes
2answers
16 views

Custom Shortcode

So I have the following code: <span class="delete"><a onclick="return confirm('Are you sure?');" href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'my-delete-product', ...
-1
votes
0answers
9 views

Video slider with downloader [on hold]

I spend a lot of time for search, but did not found anything similar. I need video slider with upload feature(all plugins, which I saw allow only embed videos from youtube, etc).
0
votes
3answers
20 views

wp-admin white screen

I know this is a very 'common' error but I have been scouring the web for a couple days and have not been able to find an answers, so I now - turn to the experts. My website is fully functional @ ...
0
votes
1answer
10 views

How to trigger WooCommerce order complete email?

I want to be able to trigger the WooCommerce order complete email at a different stage in the WooCommerce checkout process. So I've disabled WooCommerce order complete email from the backend and am ...
0
votes
1answer
8 views

How to noindex directories on site based on slug (Buddypress)?

Is there a way to noindex areas on my WordPress site based on slug/directory? For example with Buddypress I need to noindex everything after /activity (and all the child pages after it). Here is code ...
-1
votes
0answers
21 views

Title is showing “>” at the end of its name

I am new to WordPress and my search after three hours has still not produced a solution. Any suggestions? <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> ...
-1
votes
0answers
17 views

Use variable for different hooks

I am currently developing a OOP plugin where I have the problem that in a specific function, which gets fired by a specific, a variable $test gets filled. Now i have a another function ...
1
vote
0answers
12 views

Wrong output order when mixing WP_CLI::API and php-cli-tools

I have a couple of plugins that use various custom WP-CLI commands I've written. I've copied then from one WordPress project – where it's working correctly – to another on the same VM, where the ...
0
votes
1answer
9 views

How to request admin-ajax.php correctly when wordpress URL and site URL are different?

When site_url() and home_url() are different, how a request should be directed to admin-ajax.php (both in front-end and admin)? Using A. admin_url('wp-admin/admin-ajax.php') or B. ...
0
votes
1answer
12 views

wp_update_post on specific custom post type

first of all, im sorry for my poor english, when i upadte a post this code changes the post slug to a "profileid" costom field value.. add_action('save_post', 'my_custom_slug'); function ...
0
votes
0answers
8 views

How to order terms by parent term

I want to order the terms by parent. Parent term 1 -- Child term 2 -- Child term 3 -- Child term 4 Parent term 5 -- Child term 6 -- Child term 7 -- Child term 8 -- Child term 9 -- Child term ...
0
votes
0answers
10 views

Best way to assign role to user across entire multisite?

We have a content editor role that allows only editing pages/posts, but this user should be able to edit posts/pages on ANY site in the network. The problem is that these users don't have a role on ...
0
votes
0answers
16 views

pagination is not working

i know there are plenty of similar questions here ... but I couldn't find an answer. I have an overview page where I can't get the numbered pagination working: I would really appreciate any help. ...
-1
votes
0answers
8 views

How to select CSS from wordpress admin when i have multiple CSS

I have 4 bootstrap custom css and want to develop a feature in worpress to select which CSS to use from admin panel. Can anyone help me to achieve this ? Thanks Dinesh
0
votes
0answers
11 views

How to add custom redirect via parse request

I want to add custom redirect: Please tell one liner code to do : 301 redirect, 307 redirect, meta, javascript; add_action('parse_request', 'my_custom_url_handler'); function ...
0
votes
0answers
16 views

How to get all the predefined do_action() calls from an active theme

To hook my plugin content into anywhere, suppose I offered the theme developers to create their own hooks with a prefix (pre_) anywhere in their theme - the rest of the hook is unknown to me. So what ...
-1
votes
0answers
14 views

Get value of one meta key from different meta key

I have post with two meta keys say meta key A with value meta A And meta B with value meta B now I want with value to meta A given I could know value of meta B which is one. Please guide how can I ...
0
votes
0answers
31 views

Where do I have to put my CSS Code?

I am trying to insert CSS code into my wordpress page. For some reason, it does not work appropriately. I am very new to this, so I might be inserting it at the wrong place. To see why it is not ...
2
votes
0answers
30 views

Is there a limit on making calls to WordPress.org API's?

I am writing a plugin which makes calls to https://api.wordpress.org/plugins/info/1.0/{slug}.json Is there a limit on making calls to WordPress.org API's? For example once per hour or every 10 ...
0
votes
1answer
18 views

Showing ads in the specific category and its sub-categories

I would like in each category and sub-category of its own ads to be displayed. I used the in_category function but not displayed Advertising in sub-categories. Please advice.
-1
votes
0answers
14 views

Enable gzip compression On Worpress Hosted on Godaddy

I have a site hosted on Godaddy, I need to enable gzip compression on my website as it recommended on speed test, and I have added below content to .htaccess # BEGIN GZIP <ifmodule ...
-1
votes
0answers
13 views

add to cart button on Pricing Table

I have been developing a site for a client. There are pricing tables in the site. I'm trying to create a button when a user clicks on buy now it would redirect to the cart page or to the checkout ...
0
votes
2answers
26 views

Inserting dynamic content into a page

I see this subject comes up regularly but have not seen an answer to my specific requirement yet. I'm trying to use a WordPress page as a template and insert database-sourced content (about 20 or so ...
-2
votes
0answers
17 views

Header Logo with Countdown Widget

I've trawled the internet in search of a solution to this, but can not find anything. I would like to replace the header image on the homepage of my wedding blog with a countdown timer widget from Uji ...
-1
votes
0answers
9 views

Re-order Billing address fields in WooCommerce

I found this topic regarding re-oder fields of billing address: How to reorder billing fields in WooCommerce Checkout template? My requierment has a little different about re-order fields of billing ...
0
votes
0answers
12 views

Assign user to blog and role on signup (Multisite)

This is the code I have, but I think I may be using the wrong hook, or perhaps it has to do with the whole activation mechanism, but it's not actually doing it. The role picker does show up, but after ...
0
votes
4answers
44 views

get_terms custom order

I am using the get_terms function to order all the terms of a custom taxonomy alphabetically. My client however has now requested that one of the terms be put at the very end (therefore not in ...
0
votes
0answers
9 views

Multilingual multisite > customisable footer across different sites with widgets?

I'd like to keep the structure of the footer similar across all sites using the same Theme. However, each site would need different content in their footer. Here's a concrete example - for Site A: ...

15 30 50 per page