Questions tagged [customization]

Modifications to theme and plugin files to create new functionality.

1,305 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
23 views

Integrate wordpress into index page

I have index page which is pure HTML/CSS http://example.com/ and Wordpress blog into sub-folder http://example.com/wp/. What I want to do is to show most recent post + recent post widget from blog ...
1
vote
0answers
34 views

Some of my custom taxonomies are not showing but still counted in a WPMU set up

I help maintain several sites in a Multisite instance where many of the sites use the same custom theme. In this theme are custom taxonomies that are created automatically when the theme is activated ...
1
vote
0answers
34 views

Responsive images with custom image size

In a custom template, i'd like to have the images to be responsive. I'm using the following code to achieve this: wp_get_attachment_image($imageID, $size, false, array( 'class' => 'lazyload image-...
1
vote
1answer
37 views

Making a custom Pagination for multi page blog post

I am building a multi page guide in wordpress and would like to set it up so readers can click on a chapter and be taking that page. I know about the code but i would like my Pagination to appear at ...
1
vote
0answers
28 views

How to process html editor whole content of a single post

Given that I'm new about WordPress, I was not able to find any plugin implementing search & replace functionality for the html editor of a single post. Is there any technical difficulty in ...
1
vote
0answers
38 views

Disable widgets in customizer for sidebar

Please tell me how to customizer disable (hide) the sidebar widget for sidebar? That is when we choose to customizer sidebar - We show only a specific set of widgets. I created my sidebar, for which ...
1
vote
0answers
35 views

Shortcode to display Staff post type based on Location post type and Specialty post type

So I have a pretty in-depth shortcode with attributes that displays Staff members based on the attributes set for Location (post type) and Specialty (post type). I'm having an issue where if I place ...
1
vote
0answers
24 views

Is there a way to use LaTeX formatting for Wordpress?

There are numerous ways to write LaTeX equations in Wordpress; this is NOT what I am asking. Is there any way to take LaTeX formatting (i.e. not in math mode, commands like \begin{itemize}) and ...
1
vote
0answers
25 views

I want to allow the use of a data-flw attribute in links in comments

I have come up with two ways I thought this should work and I'm having no joy with either. First I tried hooking into the preprocess_comment filter. // Set allowed html in comments. add_filter( '...
1
vote
0answers
47 views

Customization API for plugin development

I would like to know, is it possible to use the API for plugins or are there other API's that have the same functionalities? The API injects inline css or stylesheets? I hope someone with experience ...
1
vote
1answer
40 views

how can I just add to parent theme function(s) instead of redeclaring whole the function

I'm using a commercial theme that has it's theme settings in WordPress's appearance/customizer. They call their settings through a function like this: (this is only part of the function which is about ...
1
vote
0answers
29 views

ERROR: Your feed is invalid (after update WP4.7) in custom types

i have created a new custom type “companias” with pods framework plugin , this custom type have this own website with its feed news, and other custom post types i have created. For example “fercam” ...
1
vote
1answer
38 views

How do I change .css versioning?

What I mean is - one of my .css files has an appended .css?v=1.1.2 How do I make it a 1.1.3? I thought that that would be automatic but after a forced flush of the cache, the same version is there. ...
1
vote
0answers
2k views

redirect product-category to a custom page

I hope you can help me. I've made one page for each woocommerce category I have in my store with a specific design. The problem is that when you click on the link of the product-category to which a ...
1
vote
1answer
270 views

Set Title from Custom Template

I'm building a site that uses a custom template to display a set of listings that are pulled from an external API. I need to set the title and meta description values using data from the API. I've ...
1
vote
1answer
2k views

How to get the value of input hidden html from text editor to custom page template?

I have 10 or more input hidden in 10 or more pages with different values in Wordpress text editor and I want to get the value using $_POST in a custom page template. How to do this? I tried to called ...
1
vote
0answers
30 views

For a specific theme, how do I build a list of all the possible theme modification names?

I'd like to use WP-CLI to modify a theme with wp theme mod. But, I do not know what all mods and their associated keys I can set with these commands. I've found that if I change a specific theme ...
1
vote
0answers
778 views

add hirarchy of categories in products grid of visual composer

I am using visual composer -> post grid -> products grid,I have select filter option to filter with product categories,but problem is that product categories does not display like hierarchy .It ...
1
vote
0answers
1k views

Change/Replace keyboard character on keypress while writing new post

Before opening this thread in here, I was searching all the day today a way to change/replace 2 keyboard keys when writing a new post on wordpress. What I need is, when an editor/admin press [ on the ...
1
vote
2answers
789 views

How to set default values for options page

here is my option page: class PriceListOptions { private $price_list_options_options; public function __construct() { add_action( 'admin_menu', array( $this, '...
1
vote
2answers
52 views

How to remove post listing page for a custom post type

I want to provide functionality to create a single post into my custom post type. And for this, when user click on main option (name of post) at left side bar in word-press back-end It's automatically ...
1
vote
0answers
40 views

How to include term custom meta into the custom taxonomy term permalink structure

I made a custom taxonomy and I'm trying to customise the permalink structure for each term by using term custom meta. At the moment I have a custom post type magazine_article and a custom taxonomy ...
1
vote
2answers
340 views

Search: how to extend the existing search to include a custom table

I created a custom table 'products' with the following field:title,description,url.The items stored into the table are imported. I would like to extends the wordpress search to this table. Is it ...
1
vote
1answer
38 views

Unable to restore from backup - how to obtain old blog posts?

A little back story for context: I was brought in to help fix an issue with a WordPress Theme Update & Migration gone horribly wrong. Long story short, when the guy that did the move finished the ...
1
vote
0answers
123 views

Make a list of sites for each user in WPMU - switch_to_blog (display in SITE_ID: 1)

page.php (site_id= 1) <?php // view all sites for all users in site network ID 1 $blogs = get_blog_list( '0', 'all' ); // ALL BLOGS if ( 0 < count( $blogs ) ) : foreach( ...
1
vote
1answer
966 views

Maximum lifetime for nonce

In our project we allow users to buy a coupon ( WooCommerce product ) for some service. We save every coupon as a custom post type with all the customer data inserted during purchase. We then via ...
1
vote
0answers
195 views

Manage multiple domains from one backend

I've want to organize all the content of multiple domains from one Wordpress back-end. Today I'd found the plug-in MU Domain Mapping from what I understand it redirects subdomains / folders to the ...
1
vote
0answers
40 views

Is there documentation reference for forms in menu and setting pages?

Trying to stick to WordPress best practices and improving how I do plugin development I have searched through the codex and developer documentation to see if there is anything indicating what is ...
1
vote
0answers
366 views

Localhost to Staging to Development Dynamic WP-CONFIG

I am trying to setup 3 environments: Localhost, Staging and Development. The issue is that each environment has its own db. We want to have ONE config file which will dynamically change the Db ...
1
vote
0answers
282 views

Get ORIGINAL image links from get_post_gallery

I use get_post_gallery( WP_Post, false ) to get gallery data because I build gallery HTML myself. However strangely it only gives list of ID's and list of thumb-urls. What is the best way to ...
1
vote
0answers
83 views

Login/Logout Session Sharing - Multiple Wordpress Installations

I am on Wordpress 4.4.2, I have multiple wordpress installations (Not Multisite) 1st Installation :- www.example.com 2nd installation :- www.example.com/blog/ I have pasted this in my Wp-Config ...
1
vote
0answers
427 views

change url for static files in /wp-admin with a cdn url

I recently purchased a CDN and used a plugin to change the site url for all static files in the "/wp-content" and "/wp-include" folder to the cdn url. Is there a way to change the site url for ...
1
vote
0answers
238 views

Child Theme with multiple css files

I know this is a frequently asked question but I don't resolve it. I have make a child theme of a theme with multiple css file and I'm trying to copy them but I probably don't enqueues css files ...
1
vote
0answers
27 views

A form that can save/edit after first input

I need a form on my WordPress website that users can input information into through dropdown fields.But i just dont want the information to go away after sending.I need them to still be able to come ...
1
vote
0answers
41 views

Static admin page for all multisite users

I want to have a stats page that all my multisite users can see, it'll give info on the network like number of users, number of posts, number of blogs, some graphs, etc. In the admin bar, i've ...
1
vote
1answer
426 views

Creating loop within functions.php

I'm using Woocommerce on my website, on the checkout page I've got a custom select checkout field with radio buttons. I'm using this working snippet within my functions.php: /** * Add the field to ...
1
vote
0answers
45 views

Using custom image resizing script in a page

I am using the aqua-resizer to create custom image sizes and cropping. However, I am also using a theme with a built-in page editor and module-based layout. I am able to get the aqua-resizer script ...
1
vote
1answer
54 views

custom post type - page template

I have created my custom post type plugin accurately & it is working perfectly on the admin panel. I have set a filter to use custom template for this plugin add_filter( 'template_include', '...
1
vote
0answers
27 views

Unable to edit the “customize” section and the “widget” section is populating unknown code

My WordPress site is experiencing some major issues. I am getting a 500 server error when attempting to change the "customize" side bar, and the "widget" section is acting really weird (populating ...
1
vote
0answers
192 views

Adding the_content() in custom template email

Let my explain the scenario first: I have a very custom page template. That is use in combination with a CPT and a few Custom fields. The CPT is called "werklijsten" (it's in dutch so bare with me) ...
1
vote
0answers
34 views

Output custom field value to post string

I am trying to get a custom field called "u-courseid" its a field that was created by a theme plugin. My goal is to output the value of this field after the post name. So the output would be " Post ...
1
vote
0answers
61 views

Sub menu indicator that links to sub menu

I am trying to create a custom mobile menu for my wordpress site. I have looked around the net for an answer and found similar things or different ways that I can accomplish this but not in the way ...
1
vote
1answer
181 views

Can't receive $args[ ] to my custom widget

I'm new to WordPress. I created my first ugly widget. It located in wp-content/plugins/my-awesome-widget/widget_init.php (no more files in this folder). And it's working. I created a sidebar and ...
1
vote
0answers
97 views

Navigation label for page in custom theme

In Appearance -> Menus, one can change a page´s navigation label. The label is what shows in the menus. However, i´m using a theme with a custom menu, always showing the full page´s title in the menu. ...
1
vote
0answers
25 views

Setup page on first login on multisite

Is it possible to create a setup page on the first login before they visit their admin page to say change the language of the administrator and change their temporary password? I don't want users to ...
1
vote
0answers
124 views

non-hierarchical post type with hierarchical url structure

I want the url for my custom post type to be like : "example.com/parent-custom-post/child-custom-post/grandchild-custom-post/" without setting the hierarchical(for custom post type) to true. I heard ...
1
vote
0answers
407 views

Custom Navigation build using wp_nav_menu and walker

What I have Right now I have an old template in plain HTML. In there I use a custom Navigation menu built like this: <div class="collapse navbar-collapse main-menu main-menu-1" id="main-menu"> ...
1
vote
1answer
422 views

Unable to sanitize in customizer and escape in theme without removing ability for user to use “< br >” to insert a line break

I have been unable to figure out how I can properly sanitize (in the customizer) and escape (in the theme, while allowing the user to use "<" and ">" to insert a '< br >' and add a line break ...
1
vote
0answers
544 views

polylang + category/tag custom language link

under wordpress user can define url part for categories/tags, e.g., page.com/category/some-cat where category is user defined string part. Is there a way to define "category" (same goes for tags) for ...
1
vote
0answers
225 views

Filtering *out* a taxonomy from the admin post list

I've got a custom post type 'Speakers' that, after some time, are added to a custom 'archive' taxonomy so that they can be sorted into different sections of the site. I'd like a way to hide any ...