Questions tagged [customization]

Modifications to theme and plugin files to create new functionality.

Filter by
Sorted by
Tagged with
0
votes
1answer
371 views

Custom Queries - Child Categories not showing up

What I'm Doing I have a cities category and normal categories. Right now I have them filtering by category, then when the user clicks a city it will filter by category AND city query_posts(array( '...
0
votes
1answer
1k views

Updating post meta for custom post types

I'm writing a plugin for work (still) and having one more issue. I've added my meta boxes as needed. However, the problem I'm having occurs when saving the post. My snippets for saving pretty much ...
0
votes
1answer
1k views

Assigning a role to a specific custom post type (and ignoring other post types)

I have a new post type called "story" And a new role called 'Writer' (w/ a 'publish_story' capability) I want it so that, a Writer when logged in can edit Profile and only edit a custom post type - "...
0
votes
1answer
11k views

How can I customize “Pages” admin (edit.php) and “Edit Page” admin (post.php) for bulk edit of custom content type?

I think its probably easier than I think to do this, but currently its beyond me. If there are any plugins out there I'd prefer to start there rather than develop from scratch, but I'll do what I have ...
0
votes
2answers
113 views

How to run a test WordpressMu to Wordpress3 update?

Currently I am running a wordpress MU site with ~100 blogs. It's Wordpress MU version 2.8.x Because it was so heavily used, I was asked not to update to Wordpress 3 right away. The users are ...
0
votes
1answer
163 views

Why is this custom taxonomy showing in the database?

I have created a plugin that add geographic data to Wordpress. According to this answer the taxonomy data should not be stored in the database, however it seems to be stored: mysql> select * from ...
0
votes
1answer
200 views

Save metabox checkboxes values to custom content type

I'm trying to save checkboxes values to categories for custom content type. I have printed the values of the IDs, the array with checkboxes values and all looks good, but at the end, the values doesn'...
0
votes
0answers
672 views

Custom protected password page with ACF

I need some help if it's possible. Each page of my website are protected with a password, i use protected password page. Page link : http://builder.depretz.com/onepage-hotel You can see the custom ...
0
votes
1answer
68 views

ajax delete value from custom field array

I have on my page a multi file upload that saves post attachments within a custom field --- if (!empty($_FILES['vidPix']['tmp_name'][0])) { $i = 1; $files = $...
0
votes
1answer
129 views

same archive template for different custom post

Suppose i have registered five custom post type like this america china nepal norway chile And to template the archive i should use like this inside theme folder isn't it? archive-america.php ...
0
votes
1answer
50 views

Show One Category on Post

How do i go about making the code only show one category? <?php $categories = get_the_category(); foreach($categories as $key => $category) { $url = get_term_link((int)$category->...
0
votes
2answers
7k views

How to add product images using script?

I have few hundred products on woocommerce without images. I am planning to upload images in future. Images have same name as the SKU of product (+.jpg). Is there a way I could write a script that ...
0
votes
1answer
233 views

Custom taxonomy admin description

Is it possible to add a short description to a custom taxonomy's admin area? For example, I've added a taxonomy that determines what kind of banners are displayed on a post's page. In the meta box ...
0
votes
1answer
404 views

restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS['_wp_switched_stack']

Related to this answer, which states After every instance of switch_to_blog() you need to call restore_current_blog() otherwise WP will think it is in a "switched" mode and can potentially return ...
0
votes
1answer
849 views

How to have a static category/author page?

I'm using a static front page with my theme and it's convenient and just nice. I'd like to do the same for the category and author pages as well. I can't find this asked yet... My reasons are... • I ...
0
votes
2answers
169 views

Cloning and syncing a WordPress website

I plan to bulid up a nice developer environment and for this I need to clone the actual running website to a 100% into a dev directory. I've now uploaded the same version of wordpress as on my ...
0
votes
3answers
1k views

Customizer image control default value showing in customizer but not on frontend

I use the WP_Customize_Image_Control to add the image. But, The default value is accessible in Customizer only!!! On front-end It return empty. How to reproduce? Copy below code snippet and paste ...
0
votes
1answer
3k views

How to implement content from external database into Wordpress text page? [closed]

What methods exist to implement data values from external database into a Wordpress text page? I think that there are two possible ways but maybe there are some more ways to realize this? Maybe ...
0
votes
4answers
10k views

Create single.php for specific category by category id

I'm trying to create template for specific category with id 1 for example. The template should be applied to all of the pages belongs to this category. So, it should be something like single-1.php. I ...
0
votes
2answers
827 views

Get number of comments after modifying comment query

I have modified the comment query arguments in comment-template.php from $author_id = get_query_var( 'author_id', 1 ); $comment_args = array( 'order' => 'ASC', ...
0
votes
2answers
595 views

Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload

We have a Directory website http://prntscr.com/e76vrf running at LISTABLE Theme. Currently, when a User Signs Up and Upload the "Profile Photo", "Cover Photos" there is no provision to adjust the ...
0
votes
1answer
164 views

Custom Post Type by user

I made a Custom Post Type for events that can be added in the admin by only certain groups of users, like a Secretary. This Secretary can add some new events, but I want to display each user his own ...
0
votes
1answer
636 views

get_the_term_list without specific category

I am using : $term_link = get_the_term_list($post->ID, 'portfolio_category', '', '<br />', ''); to get the category and link to it. There is any way to get all category despite specific ...
0
votes
1answer
63 views

Remove <figure> tag on my RSS Feed

I need to remove the tag that appears on my feed content ($content variable). http://mkt-d.hospedagemdesites.ws/wp/feed/ Is there an existing function to this task? Some tags appear with width ...
0
votes
2answers
284 views

View content from uploaded file in editor

I have a custom metabox that let's the user upload .csv files while creating a page. The content of the .csv is shown on the created page at the "front-end". I would like to show the content on the ...
0
votes
2answers
979 views

Pagination Not working on Home Page with 2 Query

I have two loops in home page (index.php) <?php $args = array( 'post_type' => 'post', 'posts_per_page' => 3, ); $another_query = new WP_Query($args); if( $...
0
votes
1answer
4k views

How to log plugin errors to plugin error_log file

How can errors, specific to a given plugin, be logged to an error_log file contained within the plugin root folder itself? Examples: Syntax errors Database errors Compatibility errors PHP fatal ...
0
votes
1answer
190 views

Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin - Adding to “Thoughts” Theme

How do I enable infinite scroll (either with the infinite-scroll plugin OR the built in infinite scroll jetpack) on the "Thoughts" Wordpress theme? I'm a total noob at editing this stuff so if you ...
0
votes
3answers
983 views

WordPress network: set themes and plugins for new blog

How can I enable specific themes and plugins for new blogs that have been created with wpmu_create_blog? I'd like to set the themes and plugins in code rather than having a person manually set them in ...
0
votes
1answer
2k views

Redirect to requested page after (custom) login

I am developing a WP site locally and I want the content to be viewable only to users that have logged in, except for the front page that's visible to everyone. When a non-logged in user clicks on a ...
0
votes
1answer
2k views

saving custom post type data to different table in wordpress

As the title says, is there any option to save the data in different table in wordpress. I have around 10000+ data in my site in a different table. I have moved this table inside wordpress database ...
0
votes
2answers
1k views

WP Plugin for Terms of Use

Looking for a plugin to ensure that casual (NOT logged in) users of my site will agree to the Terms of use. That is, first time they try to access ANY page on site, display terms and prompt for ...
0
votes
1answer
159 views

What's the most minimal way in which a page can be hooked into WP?

I do a fair bit with custom API's on WordPress-based sites, typically by creating page templates. However, creating a custom page template, then creating a WP Page that utilizes it is kind of a pain ...
0
votes
4answers
2k views

Wordpress Plugin development Call to undefined function jQuery()

Seriously, I lost my whole day with this... Either I completely missed the point... Or I really cannot find the proper information on the internet... Everywhere I find they say to load jQuery in the ...
0
votes
1answer
119 views

Display posts in random post types

I am currently working in a project in wordpress. Here i have to get all posts from two custom post types namely pt1, pt2. But here i want to display posts with random post type(pt1, pt2). Example) ...
0
votes
2answers
188 views

Show posts of one category only with Custom Taxonomy on single.php

I have created a custom post type named 14kgold. Under this I defined two categories: Symphony and Noir. Now I added items/ products to each category. When I open a product under one category i.e. ...
0
votes
1answer
281 views

Navigation link to specific user page

I asked this question and got a great reply - Associate Page with User - so I can now associate a post with a specific user as required. What I want to do is include in the main site navigation a ...
0
votes
1answer
69 views

Display WordPress Search

I am trying to display the current WordPress search term on single.php, index.php, and category.php...basically when someone searches for something I'd like WordPress to remember what the last search ...
0
votes
2answers
155 views

Database custom table issues - incorrect result displayed

First things first: I've spent most of today going over these forums; the stackoverflow forums; the php.net manual; and a bunch of random sites I found through Google Search - so, if I've missed the ...
0
votes
0answers
50 views

Php custom query function assistance

I'd like the script to return a list of posts which are in the category 'team-resources' and also have the custom field value for Hub ID which the script finds on the page. If the page carries a ...
-1
votes
1answer
136 views

Themes VS Plugins [duplicate]

If I am customizing a WordPress site, should I do that via a theme or a plugin? By customization I mean: Add new custom post type Add new fields to the Users Add new widgets Add custom permalinks I ...
-1
votes
2answers
6k views

WooCommerce Checkout page customization [closed]

I'd like some help with customizing the functionality of my WooCommerce driven site. The link can be found here: http://seekoften.com/eCommerce/checkout How can I customize the output so that it ...
-1
votes
1answer
2k views

pagination in woocommerce order history page

Please help me to add pagination in my order history page. Pagination should work like WooCommerce products page. Here is my code: <?php $customer_orders = get_posts( apply_filters( '...
-2
votes
2answers
4k views

How to hide WordPress files / structure? [closed]

Which is the best approach to hide WordPress, preferably everything from folders and files, to admin login ? I'm pretty new to that stuff, so I'll prefer a plugin ratter a custom code, unless it's ...