Questions tagged [customization]
MEANINGLESS tag. Used as a merge target for other meaningless tags. Do not use it on new questions.
1,467
questions with no upvoted or accepted answers
9
votes
1
answer
1k
views
How to make a script load after Custom Block is loaded in the editor?
I'm trying to make a Custom Gutenberg Block, but I'm having trouble with loading javascript that goes with this block.
On the front-end it works fine, but in the editor it seems that the script ...
4
votes
0
answers
74
views
Using Primary Color in Plugin Block
I'm developing a Gutenberg block, and I want the block to fit in as nicely as possible with the users site. So I'm trying to include as little styling of my own as possible, eg. allowing buttons to ...
4
votes
0
answers
235
views
Gutenberg Blocks - Attributes from comment delimiter or from HTML?
I wrote a custom block and am trying to better understand the interplay of the JavaScript and PHP on both front and back end regarding blocks.
Say I have some block that I want rendered dynamically. ...
4
votes
1
answer
2k
views
Order post by year DESC and month ASC
I have a worpresss 4.0.12 website; i created a custom template category-$id.php in which I have to show post ordering them by Year DESC and by month ASC (or a custom field ASC), the result should be ...
4
votes
1
answer
45
views
Prevent Deletion of Blogs
I'm trying to prevent the deletion of blogs in a WordPress Multisite installation. There is already a plugin that does this, but it uses wp_die() as the solution, which in my scenario does not work.
...
4
votes
1
answer
267
views
Add control in image detail panel
I am trying to add a checkbox control in the image details popup (when editing image in a post). I have added the following code in my template function.php but I can't manage to display the checkbox ...
4
votes
3
answers
2k
views
Static raw HTML page
On the server there is a static HTML page example.html in my root folder of the WordPress install. Now when a user types www.example.com/example.html I want WordPress to be smart and bypass all normal ...
4
votes
1
answer
2k
views
Split content into multiple columns using more tag?
First of, this is pretty much an exact duplicate of:
Split columns into three+ divs?
But the given solution does not work (returns blank). I'm guessing it collides with qTranslate which adds some ...
3
votes
0
answers
799
views
How to delete all posts from a custom post type?
I want to delete all posts from a custom post type "TV-Serie". The number of all posts in this post type are 150,000.
Moreover, when I try to delete them all manually while selecting more than 500 ...
3
votes
0
answers
379
views
When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
I am trying to extend the core/image block to add an option for a deferred image. I want to replace the src attribute of the image with an empty string and add the url as a data attribute to be loaded ...
3
votes
1
answer
29
views
Suggestions for WPMU Migration (advanced)
We have a multisite network with a few hundred sites. We are currently merging with another company and migrating our sites. However we have a few clients who have decided to jump ship and are asking ...
3
votes
1
answer
2k
views
How to edit wordpress RSS feed to show post title only
Hi everyone can someone help me on how to edit WordPress rss feed to show only title of the post, i use android application that display notification as rss feed that's why i want to show only a title ...
3
votes
0
answers
159
views
How can I rewrite a plugin generated URL?
I'm using the wpForo plugin to create custom profile pages on the front end of my website.
The profile URLs generated by the wpForo plugin look like this:
example.com/community/profile/username/
...
3
votes
0
answers
346
views
Add custom field to category of custom post type
I want to add a custom field (for a icon) to categories of a custom post type.
I use the default category type and not a own create category taxonomy.
How can I add the custom field only to the ...
3
votes
2
answers
3k
views
Display custom post types by date field
I have a custom post type that is simply titles with a date field. I want to display these posts in a list in order of this date field (not date posted). So simply:
--
Sample date
Event title 1
...
3
votes
0
answers
1k
views
wp_nav_menu custom walker - child items
I have written a custom walker to integrate a jQuery drop-down nav script into my WordPress template. I need to add .dropdown-link to each of my parent menu items and .dropdown-wrapper to the ...
3
votes
2
answers
3k
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, '...
2
votes
0
answers
81
views
Prevent posts from being published if the 'Uncategorized'-category or no category is selected
I do not want a user to be able to publish a post if no category is selected. This exact solution from a similar question is exactly what i want to do:
jQuery(document).ready(function ($) {
// ...
2
votes
0
answers
103
views
Custom widget select options needs to stay selected after save
I am working on a custom widget that includes a select options drop-down list of pages. When I select a page and save, the selected option does not stay selected. However, if I refresh the widgets ...
2
votes
0
answers
199
views
Hiding Draft Post In Admin
Does anyone know of a way to hide draft post so that when "All" post is selected, draft post is not included?
I tried adding this code to my functions.php file but it lead to an error, I'm ...
2
votes
0
answers
389
views
How to extend nav-menu-item-control data in Appearance > Customize?
I have one question as for Nav Menu Items custom fields in the Appearance > Customizer screen.
Since 5.4. there are 2 new hooks:
wp_nav_menu_item_custom_fields - it works for Appearance > Menus ...
2
votes
0
answers
899
views
'Invalid post type' error when importing from one site to another
Our existing corporate site was developed by a 3rd party vendor. I am in the process of creating a new version of our site, in a new WP instance. I need to export the 'News' articles, from the current ...
2
votes
1
answer
397
views
Syncing Avatars across multisite
There's gotta be a way. I have tried a bunch of different multisite sync plugins and they sync users and roles just fine (even paid for plugins to do so)....but avatars don't sync.
My registration ...
2
votes
0
answers
566
views
Hide Login information in Account settings in Buddy Boss
First time working with Buddy Boss.
I managed to customize the navigation items on the profile page, but I can't find a solution for the Account settings page.
What I'm trying to achieve is to hide/...
2
votes
0
answers
358
views
Meta query for custom post type ignored in main query
I looked through the interwebz but couldn't find a solution.
I am creating a website with custom post types where posts also include custom post meta (through ACF).
I am creating an archive file and ...
2
votes
0
answers
46
views
How to re-arrange media uploaded using : media_handle_upload() as per year / month
I have been facing this issue that all the new media files are getting uploaded to single folder which was auto-generated during initial site development.
Now since all new images are getting uploaded ...
2
votes
2
answers
1k
views
Show post page only if the user has bought a specific product
I'm having troubles with Woocommerce.
I need to sell videos.
I've created virtual products with a link to a different post for each (no download as I prefer to embed the video on my website and to use ...
2
votes
0
answers
50
views
How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
Auto-linking for "selected words" in the_content I am currently using the following code:
function wp_affiliate_links($text){
$replace = array(
'/ example /' => ' <a rel="nofollow" href="...
2
votes
0
answers
294
views
Can't create term for product attribute
Please help. I need to create product attribute term after I create a product attribute taxonomy.
wc_create_attribute([
'name' => 'Size',
'slug' => 'size'
]);
// This will only work If I ...
2
votes
0
answers
80
views
Check Title Unique Or Not and If not error message and dont save
i am get tired from searching 2 days for what i wanna
i have 'area' custom post type have Title and another field
i wanna the title of area is unique
if the user enter title 'area1' and this title ...
2
votes
2
answers
647
views
Create a custom php page and load it at a specific slug
I have this painful problem with a client. They need to load a feed from a remote endpoint into a page that fits their WordPress template design.. They also want to display the page at a particular ...
2
votes
0
answers
528
views
Gutenberg: How to mix dynamic and static output?
Gutenbergs handbook (https://wordpress.org/gutenberg/handbook/blocks/creating-dynamic-blocks/) suggests to return null in the save() function for dynamic blocks.
But what if I only want parts of my ...
2
votes
0
answers
401
views
removing custom tax & CPT slug, adding taxonomy term in front of custom type
I am having difficulties setting up the following structure in Wordpress:
site.com/custom-taxonomy-phase-term/ (taxonomy page but without the taxonomy slug)
site.com/custom-taxonomy-phase-term/...
2
votes
1
answer
545
views
Work flow for multiple developers
I'm looking to streamline the development work flow for a new project that will have multiple developers involved (backend and frontend).
My biggest quandary is how best to make sure all devs have ...
2
votes
0
answers
594
views
Custom column sorting in WordPress admin post table
I have made a custom column in user administration panel showing user meta data and registered it as sortable. Made a query action to sort it by the meta numerical value (the stored user meta data is ...
2
votes
0
answers
198
views
Unique User Account Number + Displayed Via Shortcode
I've seen a couple articles on creating unique account numbers for users:
https://stackoverflow.com/questions/37693209/create-unique-account-number-for-every-user-that-registers-to-the-system-using-w
...
2
votes
0
answers
4k
views
Add attribute / custom attribute to product in woocommerce
I have products from some API and want to insert these products. I was able to insert products and use already existing attributes ( or added by UI ).
Adding new term (My Color) to the existing ...
2
votes
0
answers
190
views
add_rewrite_rule won't work
I did it in the past and it did work. But this time it won't work and I can't figure out why. The difference is the version of Wordpress and the version of WPML.
So, I have the latest version of both:...
2
votes
0
answers
50
views
How to stop unlink images when remove a site or user
What's the best way to prevent images deleting?.
I have a central cdn site to share images to several sites on wordpress multisite, and by mistake, I have remove a user from the network and all my ...
2
votes
0
answers
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 ...
2
votes
0
answers
86
views
Wordpress Template not affecting the working, keeps defaulting to the index.php template
I thought this would be incredibly simple, but it has not. I have an index.php file that has my default template for my site. I then made a new file called magazine.php for a template file so that I ...
2
votes
0
answers
26
views
Custom Widget form function common elements
I am writing a set of custom widgets, all of which share a common 18 lines of code in the form() function, which looks like this:
<div class="common-section">
<input type="hidden" class="...
2
votes
1
answer
546
views
Add custom taxonomy under the category title
I've added a custom taxonomy to my product category page in the admin. I can call the custom field using the following:
$queried_object = get_queried_object();
$t_id = $queried_object->term_id;
$...
2
votes
1
answer
392
views
Updating Widget options in custom install.php
I am using a custom install.php in /wp-content/ to over-ride some defaults when creating sites in a multi-site install. For the most part, this is easy and working really well. I am having difficulty ...
2
votes
0
answers
69
views
How To Add buttons to the toolbar which appears in TinyMce when you click over images
Using Wordpress 4.4 I need to add a custom button to manipulate images. The button should appear when the user clicks on an image, next to other buttons.
An example of the other buttons:
2
votes
0
answers
59
views
How do I copy all "extra" data (menus, widgets, etc) from one theme to another?
I have two copies of a theme I'm developing up on my site (one was the existing file structure when I got started; the other is now set up to update automatically via git for a more sane development ...
2
votes
0
answers
42
views
Comments not nesed with custom template
I have a custom template for to show my comments.
For some reason, there are not nested while looking in the back-end of Wordpress, I see that some comments have a parent.
They are simply displayed ...
2
votes
1
answer
334
views
How to add more than one RSS Feed Link for wordpress
I'm using code to change Rss Feed Link for my wordpress site, it's working but I don't know how to add more than one rss link appear when someone click on browser Rss Icon, I need these links to ...
2
votes
1
answer
424
views
Are there any security issues with setting the WP_INSTALLING constant to true?
Running Wordpress 4.1 on a CentOS 6.5 instance through VirtualBox as a dev server. When logged in as admin on both ssl and non-ssl sites Wordpress curl requests are taking a long time to run (45+ ...
2
votes
0
answers
1k
views
source code: WP_INSTALLING vs. WP_SETUP_CONFIG in setup-config.php
I am trying to make sense of the wordpress installation process.
The file setup-config.php under wp-admin has the following.
I want to know what the difference is between these two variables,
why both ...