Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (15)

0
votes
1answer
13 views

Can I check who updated the static front page on WordPress and the time it was done

I need to check who updated the static front page of a WordPress site and the time it was done. Is it possible? And if so how? I'm an administrator of the site and there are other administrators with ...
13
votes
2answers
7k views

Creating an Image-Centric Custom Post Type?

Does anyone have any tips for creating an image-centric custom post type? To elaborate, my blog has rotating header images, shown below: The two images in the top left are randomized, and exist as ...
-5
votes
0answers
12 views

customize_admin_bar script

I need help. The following script is to be adjusted so that work with Usergroup subscriber not with ID1. Many Thanks! function customize_admin_bar() { global $wp_admin_bar, $current_user; if ...
0
votes
1answer
28 views

Display value of custom field at the beginning of a post

I've been using the subtitles plugin to display a teaser text to my posts right underneath the title (which is named _subtitle, and stored in the post's meta). How do I display this value at the ...
0
votes
1answer
17 views

How to transfer one domain to another domain without losing theme options (customizer)?

I have developed the one wordpress site with custom theme, Here I used the custom customizer options. Then site completed on my local machine I mean localhost (http://127.0.0.1/wordpress). Now the ...
0
votes
1answer
20 views

setting a specific home page for logged in users

After googling, I have a piece of code to set a specific page as home page in wordpress. The code says, add_action('init', 'loginCheck'); function loginCheck() { if (is_user_logged_in()) { ...
0
votes
1answer
23 views

Add code inside specific wordpress standard function

Is it possible to add a piece of code snippets inside wordpress standard function ? In my case I am developing a plugin that will trace the exact location of the caller of wp_delete_attachment method ...
0
votes
0answers
25 views

Is this possible with Wordpress it's rewriterules

I'm aiming at creating my own plugin but i'm having some troubles figuring out with the rewriting and so on. What i'm trying to build is that my client(s) can created their own "Vehicles". Well that ...
1
vote
1answer
1k views

Filter posts by custom taxonomy terms

I am trying to filter posts by author. The 'post_author' is a custom taxonomy and I've included it in my args and posts are showing with the linked author names but when I click on the author name ...
0
votes
0answers
11 views

How To Create Custom Taxonomy For BuddyPress Activity

I want to create custom taxonomy for buddypress activity post type so admin can categorize activity posts like assigning categories to standard Post type. I can not find any tutorial / article or ...
0
votes
1answer
26 views

Admin menu disable new/delete page

So I've been tinkering with the admin roles and I can't seem to be able to revoke create page rights for the admin. I can only find 'Edit page'. If I remove Edit page, the entire pages tab goes ...
-3
votes
0answers
19 views

WooCommerce Product Attribute Metabox Custom Checkbox [on hold]

In WooCommerce when we choose a variable product, it creates the metaboxes in file class-wc-meta-box-product-data.php using output function from html-product-attribute.php file to display in admin. ...
0
votes
1answer
12 views

Removing comma from 'entry-date' in Twenty-Sixteen theme

I would like to remove the comma persent in the entry-date in the entry footer of Twent-Sixteen theme for styling purposes. (Month-Date, 2016) Looks like the date is coming from the function below. ...
2
votes
1answer
50 views

Theme Customizer not loading

I have created a new theme and i use it in some of my sites (multisite) but at one site the customizer preview does not load (spinner never stops). Loading the customizer preview of other themes work ...
0
votes
0answers
17 views

Custom Post Type - multiple in single menu position

I currently have a couple of 'Custom posts types'. Currently, each of them has a separate item on the menu but I would like to add them all as sub for one position. I have somethink like this: Movies ...
0
votes
1answer
642 views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: ...
-3
votes
0answers
9 views

Plugin: Ajax Search Pro (woocommerce) [on hold]

I installed and configured the Ajax Pro plugin. That all works great and just how I want it. However, the display of results I would like to change. Currently it shows the name and price only (I ...
0
votes
1answer
519 views

Taxonomy Category category.php not working

I have created custom post type, taxonomy and categorys. When viewing the category it seems to be using index.php and ignoring the WordPress template hierarchy. Any ideas why category.php, ...
0
votes
0answers
7 views

Integrate a gallery with thumbnail inside a div with custom field

I have a tough problem. I created in wordpress template, a portfolio page. When you click on a project picture, a new div opened with other project's pictures. But I would like that my picture are ...
0
votes
1answer
31 views

Wordpress Install - “end of script output before headers” when running simple php script

I have a multi-site Wordpress installation for a client, and for one of the forms I need to do some manual database interaction as the feature is separate. The problem I'm having however, is that any ...
1
vote
1answer
829 views

Pagination Issues using WP_Paginate Plugin

So I have read more posts and articles about this issue than I care to admit and still nothing I can find works. Here is the issue - I can not get the pagination to advance and it shows all the same ...
0
votes
0answers
11 views

Media Grid Wordpress Plugin [closed]

I want to know whether it is possible to load the LC WEB media grid's item to lightbox contents in any div the media grid is inserted into - for example see image attached. Id like to take a media ...
0
votes
1answer
428 views

How to redirect to 404 page not found page in wordpress

I have created a custom template for a custom post in a childtheme. if some conditions are not satisfied i want to redirect the page to 404 page not found page. if(false) { //redirect to 404 page ...
-3
votes
0answers
11 views

how to remove detail product page? [on hold]

How to remove detail product page or product link from the site so that user not able to go the product page. not able to remove product link any solution? iam not able to disabel product page
-3
votes
0answers
13 views

Modify plugin to simply change the user experience [on hold]

I am kind of new to wordpress. I purchased a certain plugin which enables functionality I require but has poor user experience. It disables fields instead of hiding and the shopping cart wording it ...
0
votes
1answer
20 views

Displaying a custom post type using get_template_part into a specific layout

I am new to wordpress custom themes and am trying to recreate this website (http://www.divecarib.com/) as practice. I am trying to find the correct way to achieve the following: I have created a ...
0
votes
0answers
13 views

Output Video Download Link in template

I have a website that uses a "video" custom post type to display self hosted videos in post. I am trying to figure out how to make a download link for each video that uses this "video" custom post ...
-5
votes
0answers
14 views

How Can I Add Iframe Modal Pop Up to Woocommerce Buy Button [on hold]

I have a shop page I am working on at the moment which need some tweaking. Some of the products currently leads to an affiliate page, but my client doesn't want the customers to get redirected to the ...
0
votes
0answers
26 views

Custom post type category copies posts from “Posts”

I'm creating a custom post type and added function pricing_init() { $args = array( 'label' => 'Price Tables', 'public' => true, 'taxonomies' => array('category'), ..... And ...
2
votes
2answers
556 views

How to get shortcode working from custom meta field

I've created a simple text custom meta field for pages. I can successfully enter plain text which prints on the frontend of the site with no problem. I want to add shortcodes also. If I add a ...
0
votes
0answers
10 views

Custom plugin update [on hold]

I want make my custom plugin to be updated from none wp repository! How should I sett it up? Mainly the server part!
0
votes
0answers
22 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 ...
2
votes
2answers
2k views

Wordpress most popular post own code, per week

The plugin Most popular posts doesnt support WPML and therefor I have tried creating my own. I have found this tutorial in creating your own code for showing the most popular posts on my site. ...
261
votes
108answers
131k views

Best Collection of Code for your functions.php file [closed]

Please vote on the question and any answers you find useful by clicking on the UP arrow on the left hand side of the question or answer. As with many others who are now viewing this post, I have been ...
-1
votes
1answer
19 views

Child Plugin Admin Panel

So I've installed wp-mail-bank plugin and I want to customize certain part of them core. So I choose to use Hooks : location : /wp-mail-bank.php function backend_plugin_css_scripts_mail_bank() ...
0
votes
3answers
40 views

Custom search for custom post meta with pre_get_posts interferes with WP search

I'm making a custom post meta search with the pre_get_posts function in my Divi child theme functions.php file. The problem is that the final query gathers not only the results for my custom post ...
0
votes
0answers
12 views

Unhook (or remove) Sidekick Customizer Option using a function

How do I remove / disable / hide the "Click for Help" Sidekick Drawer? I'm reading over the codex and I just don't see anything relevent between this and the plugin. I downloaded the plugin, start ...
0
votes
1answer
11 views

List all post from different post type on one page by CPT UI

I am a php begginer. I am using CPT UI plugin for one of my projects - free resources for designers. The idea is to have different pages for different type of resources. So I will create different ...
0
votes
1answer
13 views

Showing different pages depending on a cookie value

I have a website that asks the visitors to choose a language on the first page, I store the option in a cookie and I am showing the content (starting with second page) depending on this option. I ...
0
votes
1answer
39 views

WordPress Customizer Help with FontAwesome Icon

Here's the scenario - I want to select fontawesome icons from the dropdown list but it's not working. For some reason the class inside span is not adding up (I have tried jQuery().append(), CSS) but ...
1
vote
2answers
799 views

Set static page as default front page on newly created sites in multisite

How to set a Static page (example Sample Page with every WordPress install) as default fron page for every newly created site on multisite network. I mean when a new user creates a site on my ...
3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
0
votes
2answers
17 views

How to request container_class from wp_nav_menu

I'm currently trying to setup a custom nav walker that will use container_class from the menu as a prefix for the class names of the list items and children. $defaults = array( 'menu' ...
1
vote
1answer
655 views

Sort posts by multiple meta key values

I'm not new to wordpress, but I'm not very good at PHP. I hope someone can help me, since I already tried to search for a solution for over 5 hours with no luck. So I have an archive.php page where I ...
3
votes
1answer
855 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
0
votes
2answers
29 views

Custom link for wp_insert_post

Is there any way to add a custom URL to the wp_insert_post function? $my_post = array( 'post_title' => wp_strip_all_tags( $_POST['post_title'] ), 'post_content' => ...
1
vote
1answer
544 views

Customizing default Mediaelement player

Good morning/afternoon everyone. Been playing around with the default wordpress mediaelement player and definitely loving it. I managed to customize the layout a little by overriding some css values ...
-3
votes
1answer
20 views

How remove “recent comments” title without modifying code? [closed]

How remove "recent comments" title without modifying code? I have already disabled comments and do not wish to see that title.
0
votes
0answers
25 views

Addressing Child Page from Custom Menu

I build the website of an association with centers in different cities. Each city's pages need their own sidebar. I want to program an automated solution where the editors dont need to select ...
0
votes
1answer
43 views

Why isn't my custom Javascript showing up in my custom template?

I'm in the process of converting an HTML homepage to WordPress format and I'm not sure what to do with the Javascript that's included within the of the index.html homepage (as opposed to the JS ...