Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (17)

0
votes
0answers
17 views

Too large translation (.mo) file - localization error

The problem - it is impossible to translae the template. The initial theme has a folder /Language In this folder, only one file - en_EN.po In principle, this should be enough. I have created on its ...
0
votes
1answer
28 views

Will too many overridden css rules lead to performance issues

I am customizing the avada theme for my needs. Since the theme gives many options to style the fronted via its admin panel, I have to write many lines of simple css code for custom elements etc. Based ...
0
votes
0answers
39 views

the_title variable

I have a problem with a wp theme and her reservation function. I had to make some modifications to the theme for add a second page with the "houses" accommodation. Now I have a problem in the ...
-3
votes
1answer
21 views

How to give different user access to different people?

I have a video tutorial website where I have to provide videos. For that purpose I have to give different user access to those who login to particular courses. So can you please help me what is the ...
0
votes
1answer
26 views

How to display all custom fields associated with a post type - IN THE ADMIN AREA?

I know know how to get all the custom fields from a custom post type, that's easy. However, when I create a custom post type, it displays a beautiful page automatically in the administration part of ...
0
votes
2answers
26 views

Change Background Color For CPT Template

Please help. Anyone knows of the proper way how to change the background color for a custom post type template only? Using chrome's inspect, I saw that my theme uses the ID of "#main" for all the page'...
0
votes
0answers
23 views

overriding wp_new_user_notification function

Myself trying to customize the wordpress user registration greeting email by referring this link and my code as follows. function wp_new_user_notification($user_id, $plaintext_pass) { $user = ...
1
vote
1answer
27 views

How to use a hook to override an update_post_meta call in a plugin?

A plugin I'm using contains the following code: $download = array( 'post_title' => $title, 'post_content' => '', 'post_status' => 'publish', '...
0
votes
0answers
29 views

URL Rewriting on CPT

My website has Custom Post Type and I want to have beautiful URLs but i don't know how to do. Ex: https://www.mywebsite.com/boutique/?countryname=allemagne#!/countries=252 TO BE https://www....
8
votes
1answer
125 views

Can we use one WordPress installation for multiple databases, domains and content directories

I have seen some questions which look similar, but they all ended up with multisite. For maintainability, performance and security, I don't want to use multisite. So please bear with me. This is what ...
0
votes
1answer
40 views

Set a Custom Post Type as a Homepage

Im trying to set up a custom post type single post as a homepage. I have custom plugin, it registers CPT called STACKS, Im using it to build various one page scrolling pages... It has its own custom ...
0
votes
1answer
32 views

Child Theme header1.php file not overwriting parent theme's header1.php file

I am trying to add a custom header navigation to a WordPress site using a child theme (I'm using the Alphabet theme). I determined that I am using the header1.php file according to the styling inside ...
0
votes
0answers
22 views

customize exisiting wordpress menu item

For a school project I am trying to manipulate the existing primary menu with a plugin. The result should be: if the plugin is activated, it edits the 'Login' button to be conditional: if something ...
2
votes
1answer
31 views

Is there a filter hook that I can use to change how taxonomy term names are displayed?

I need to hide a custom taxonomy's terms' names on the frontend while preserving them on the backend. Instead of the terms' names I need to display pseudonyms. I can't find a single filter hook to do ...
1
vote
0answers
32 views

TinyMCE custom dialog with selectbox not working

For a theme I add a custom menu to Wordpress' TinyMCE using ed.addButton. Now some of those menu points have more or less elaborate options, so I thought I'd use the custom dialog function of TinyMCE ...
0
votes
0answers
21 views

Possible to customize wp_link_pages Number to custom url

I have using muliti-site network with wp-4.3 version. For Better seo functionality need some customization. wp_link_pages() function to generate pagination with number. How to manage number to own ...
0
votes
0answers
31 views

How can I add rewrite rule for custom page?

I'm showing child categories data in custom page using wordpress. Problem is that i'm fetching those child categories from parent category slug. www.example.com/digital-post-page/?cp=category-slug ...
0
votes
1answer
17 views

Any way to permanently translate themes?

For the reason beyond my imagination Wordpress never had chance to get real theme updater (i.e. the one that would actually update only changed files) and instead offers a-joke-called-updater, that ...
2
votes
0answers
22 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 ...
5
votes
2answers
75 views

Rename UPLOADS folder with custom WP_CONTENT_DIR

For version control purpose, our client has a WordPress app with directory structure like this: . |_____app | |_____themes | |_____plugins | |_____uploads |_____index.php |_____WordPress |_____wp-...
0
votes
3answers
41 views

Show custom message/info for authors in add/edit post page

I have a multi author blog and i need show a global info message in top of add post page, so all authors can read it when they come in this specific page, how i can add it? Thank you
3
votes
1answer
62 views

How to change URL Custom Page?

My Page Custom URL: http://abcd.com/watch?name=video-title How can I change this url to http://abcd.com/watch/video-title where watch is a custom page? My functions.php code: function ...
0
votes
1answer
52 views

How to send email with wp_mail() with from email taken from contact form instead of the host?

I have set up SMTL like this, add_action( "phpmailer_init", "send_smtp_email" ); function send_smtp_email( $phpmailer ) { ini_set("sendmail_from","xyz@gmail.com"); ini_set("sendmail_path","xyz@gmail....
0
votes
0answers
18 views

Multiple Passwords to protect WP pages [duplicate]

I have been using a plugin that has worked great up until the latest version of WP. There has not been any development on this plugin in the past 3 years so I assume it wont be fixed. Now I need to ...
0
votes
0answers
14 views

How do I let users specify interests on signup and have this reflect content displayed on homepage?

I'm looking for something that will allow my site to have the following functionality: A user creates a login for my site. When creating a username and password, they also select from a list of ...
0
votes
2answers
56 views

enqueue script on custom post type archive page

How do I enqueue a script on the header if the user is on an archive page of a custom post type? The custom post type is called limitedrun and the page is called archive-limitedrun.php. I tried this ...
0
votes
1answer
28 views

How to add custom 'layout' buttons to wordpress editor?

I'd like to modify the editor by adding some 'layout' buttons. Ideally, I'd like to add the ability to add some html 'partial' by simply clicking a button. This is to help my client to create pre-...
0
votes
1answer
18 views

Add commentmeta custom field to every published comment with SQL

I am trying to add custom commentmeta "likes" with 0 as default value to every posted comment. I have this query but I dont see any error there, but still it doesnt work. Can anyone help me to solve ...
0
votes
1answer
33 views

Query 1 custom post type, each day, alphabetically

Hoping someone can help - for some reason my brain is mush on this one and I can't seem to find a similar example via Googling. What I have is a CPT called "products" for example and what I need to ...
0
votes
0answers
11 views

Using a separate image server with WP

I'm interested in figuring out how to use a public image server instead of Wordpress' root image directory for managing media on a new Wordpress site. Background: Client currently runs a blog with ...
0
votes
1answer
12 views

Highlight specific user with custom field value

I'm working on a Wordpress project with some friends from school. But there's a problem with highlighting a user on the website. The idea is to create a 'User of the month' thing. In the user ...
0
votes
3answers
48 views

How to create custom layouts and static pages in themes for clients

How do I build goodlooking, custom pages into my themes. I've decided to use underscores to create custom client themes, as I need complete freedom in design, and all the tutorials I've found on theme ...
0
votes
1answer
33 views

How to append custom text to the output of 'categories widget'?

How do I customize the "categories widget" to append additional text on the sidebar display? from category 1 category 2 category 3 category 4 to category 1 folder category 2 folder category 3 ...
2
votes
1answer
28 views

How to exclude certain widget from showing up on home/front page? [duplicate]

Without using a plugin, how do I prevent/exclude the sidebar widget "recent posts" from showing up on the home/front page? I do want it to show on the sidebar of rest of other archive/post pages.
2
votes
1answer
39 views

Theme-Config tab in admin Pannel?

Sorry, for my broke english. There are few questions that I'd want to ask that got me quite confuse. I will try to phrase and describe my question the best way I could. Starting with a bit of ...
1
vote
1answer
33 views

Changing editor-style.css style

I am using the following code in my function.php file to add a Format dropdown to the WordPress visual editor with just one option, Custom 1. <?php function custom_styles_button($buttons) { ...
0
votes
0answers
23 views

Can not be able to insert the custom post taxonomy

here is my code in which i can't get insert the term in custom post type taxonomy .as in the the code in wp_insert_term($term,$taxonomy,$args); cannot work , while it is working if i put a string ...
0
votes
1answer
19 views

Add custom columns in custom post type browse page

I made a plugin which adds a "member" custom post type. I customized the edit view (with the editor hook) to get only the fields I want and store them in the database. I have fields like "name, ...
1
vote
0answers
16 views

User can have multiple shipping addresses [closed]

Howd, folks. I'm needing a way to allow users from a e-commerce have a infinity number of shipping adresses, but I can't figure how. I get a couple of plugins, but they don't let me get a list of ...
0
votes
1answer
20 views

Static home page ignored

I am trying to show an static page instead of posts. It is defined accordingly in Settings-Reading, and it works fine. It uses a front-page template. But activating Polylang (since my web should be in ...
1
vote
1answer
44 views

How to stop images from being wrapped in <p> tags?

I'm trying to stop Wordpress from automatically wrapping <img>s with <p> tags. I've tried this often-reccomended snippet from around the web in my functions.php: function ...
-1
votes
0answers
32 views

Child 'page' of 'private' looses /parent/ in permalink after child update

For example, I have the site structure, where I want to publish child pages to be indexed by Google before their parent page is ready. I can't do this because I can't choose the parent page for ...
0
votes
1answer
23 views

Displaying all Custom fields on post except some

I have been trying to display all my custom fields listed like this on my page: Label1: Value1 Label2: Vaule2 and so on. But I only interessed the the label - I have this code: <h3>All Post ...
0
votes
1answer
24 views

Change the default WordPress image on the dashboard login to a custom image [duplicate]

How do I change the default WordPress image on the dashboard login to a custom image?
0
votes
1answer
57 views

How to customize search result page title?

I would like to customize the page title of the search result page: from: <title>Search Results for “search string” – Page 2 – Sitename</title> to: <title>“search string” result ...
0
votes
3answers
108 views

Integrating WordPress to my website, while keeping my own authentication system

I've recently integrated WordPress to my website and I've been trying to find out the correct way to replace Wordpress' authentication system with the one on my website. My website already has a user ...
0
votes
1answer
13 views

How do I routinely extract the thumbnail of the most recent post?

I would like to write a PHP snippet that can communicate with Wordpress. When a new post is published, a file today.jpg will be generated from the thumbnail url (a custom field) of the most recent ...
1
vote
3answers
63 views

How do I apply style to each category of a list?

I need to create a simple plugin to show a list of categories inside the body of the post and, as I am new to coding, I searched for the basics and started to make little changes; it looks like this, ...
0
votes
1answer
29 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 ...
0
votes
1answer
47 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()) { ...