Tagged Questions

Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

-1
votes
2answers
21 views

Is there any automatic ways to do minimum backup of a wordpress site?

There are already a lot of user-friendly plugins can schedule WordPress auto backup (sql+files), however, Some sites' files are really big in total content; Is there any of them which can schedule ...
0
votes
1answer
20 views

How wp maps urls into files

I am trying to understand how wordpress works. I have found this line of code in my theme: <?php echo get_permalink(get_option('Theme_search_page_id')) ?> If I get the that option from mysql ...
-3
votes
0answers
16 views

Zoho Recruit Job List [on hold]

I'm working on a website at the moment and need to integrate zoho recruit into it. All I need it to do is display the job listings from a zoho account I have. I have been pointed in the direction of ...
0
votes
1answer
23 views

Get custom classes in Wordpress Navigation Menu

i'm a beginner to Wordpress. I have a question is how to get only classes we put in CSS classes box in Navigation Menu? Not all with the default Wordpress classes. The purpose of this is i want to ...
0
votes
2answers
40 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. ...
0
votes
0answers
14 views

WP Admin register taxonomy and post type performance

I noticed that the wp backend (admin) gets slower (and slower) when creating custom post types & taxonomies. (note that I'm not flushing any rewrite rules). Right now I'm calling the ...
0
votes
1answer
11 views

Format latest/newest post differently

I need to apply different formatting to only the latest/newest post. I need the first post to be full size image and full post, all subsequent posts must be excerpts with thumbnails. The code I am ...
1
vote
0answers
14 views
+50

How do I go straight to “Edit More Details” when clicking on an item in the media library?

By default, when I click on an item in the media library, it takes me to the Attachment Details page, e.g. .../wp-admin/upload.php?item=65. What would I need to edit to make it go straight to the ...
-1
votes
0answers
11 views

breadcrumb do not show the child pages but home page and post name [on hold]

function the_breadcrumb() { global $post; if (!is_home()) { echo ""; if(is_single()): echo 'Main'; else: echo "Home"; endif; echo " / "; if ( ...
0
votes
0answers
10 views

Custom Admin Menu Order

I have a simple solution in my functions.php for reordering the admin menu. Here it is: // Admin menu - reorder function custom_menu_order($menu_ord){ if (!$menu_ord) return true; return array( ...
-3
votes
0answers
19 views

Add custom upload field in checkout page - Woocommerce [on hold]

I would like to add a input field to upload a file during the checkout. How can I do this? Currently, I added this in function.php add_action( 'woocommerce_after_checkout_billing_form', ...
-1
votes
1answer
23 views

Show div only if he has value insided - advanced custom fields plugin

Recently I installed the advanced custom fields plugin, and I want to display the fields only if there is values inside. So I used if statement and its work fine. Now I have some fields to display and ...
0
votes
2answers
86 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 ...
1
vote
1answer
35 views

How to reorganize the items returned by wp_list_comments()?

I'm new to WordPress theme development and learning by building a new theme of my own. I want to reorganize the items returned by wp_list_comments(). I created comments.php in my theme folder and it ...
0
votes
0answers
9 views

Custom logo upload via custom option page

I've tried, <?php if ( get_theme_mod( 'm1_logo' ) ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" id="site-logo" title="<?php echo esc_attr( get_bloginfo( 'name', ...
0
votes
2answers
31 views

Function to remove archive sidebar for custom taxonomy?

I have a custom taxonomy/custom post category and I'm trying to write a function, which removes the sidebar from the archive pages, only when there's a (custom) taxonomy match. The match part isn't ...
0
votes
2answers
17 views

How to add pagination in between post and comments?

I am trying to add pagination in between post and comments. I used plugin Automatically Paginate Posts for that in which i can able to add pagination after comments and facebook plugin. Is it ...
0
votes
1answer
37 views

Create “alternative/zebra” boxes in the content area?

I'm looking for a way to create "box" areas in the content area. Is there any native way to easily have custom "box" areas as such? Basically this will be like a zebra table except not a table, ...
0
votes
1answer
25 views

How can I have the posts from one word press blog show on the presentation page of another word press site

I am using the Tempera 1.2.2 theme with presentation page enabled (http://worldofmagictravel.com) and curently the blog posts that are showing on the presentation page are from a blog category within ...
0
votes
0answers
14 views

Hierarchical relationships with different custom taxonomies [duplicate]

I have a custom post type: Cars and two custom taxonomies: Makes and Models. I already created a front-end post submit form using those three elements but as you may imagine from the title, I want to ...
-3
votes
0answers
6 views

mini cart not showing in acrt and checkout pages? [closed]

Iam using MyStyle theme in my wordpress website. I have implemented a minicart widget in header.How to display minicart in cart and checkout pages in wordpress
0
votes
0answers
12 views

Make a custom permalink for a specific category

I would like to make 1 post and check off 2 categories, say cat1 and cat2. I want cat1 to spit out my post like this : site.com/past-name Then cat2 to spit out the same post like this : ...
0
votes
0answers
9 views

How to add two-column rich-text category descriptions?

I want to have category descriptions that my website's editors can change without having to write HTML. And: Rich text and image insertion is needed as well. So I need to customize category ...
-3
votes
0answers
17 views

Manage “objects” in Wordpress? [closed]

I've gotten a project where the only requirement is that I develop their website in WordPress. The purpose of the site is for the members to manage test subjects. We already have all the subjects in ...
-4
votes
0answers
19 views

How to add email field to rating? [closed]

I'd like to add an email field to the following WordPress rating system (at the moment it only asks for name and rating), any help? /** * MULTI-RATING SYSTEM WITH AJAX */ add_action( 'init', ...
0
votes
1answer
22 views

How can I make custom static widgets/areas on my homepage?

I'd like 2 areas on my homepage which will be static but can be editable with tinyMCE or whatever editor WP uses instead of hardcoding HTML in the Widget editing area. What would be a way I can go ...
0
votes
1answer
25 views

Showing custom field contents without listing description

I'm customizing a directory theme and my custom fields appear only if I put some text at the company's description, otherwise it will show nothing... Any idea how to fix that?? I think the problem ...
0
votes
0answers
11 views

Displaying checkboxes custom field as list

I have a checkboxes custom field, and I figured a way to show it as a list, the problem is, the name of the field shows as an item on the list, instead of for example: Items: Item 1 Item 2 it ...
0
votes
0answers
13 views

Any way to calculate distance between 2 addresses based on custom fields?

I'm working on a directory database theme, and I wonder if there is any way to calculate distance between 2 addresses or lat/long.... It can be a straight line calculation, and direction (bearing) ...
0
votes
1answer
22 views

How can I show <li> only if custom field has content [closed]

I have the following code: <font size="2">Pistas:</font></p> <ul> <li> <?php echo types_render_field("pista-1a", ...
0
votes
0answers
8 views

P2 By Email Problems with Outlook

Our organization just launched a new, private online community so that our members can communicate and connect with each other online. It's a WordPress site, but we use the P2 theme, which allows for ...
0
votes
0answers
18 views

How to manage different admin notices for different blogs?

i am trying to create plugin that can manage different admin notices or any other information for different blogs. for example: i have in my multisite network with 50 blogs. i want to select some ...
0
votes
0answers
18 views

Custom Gallery With Pagination/Navigation

With the help of someone I have created a custom gallery script, which picks all images with the slug x and presents them just fine, e.g. "people" (custom taxonomy). My problem is now, that I do not ...
1
vote
1answer
30 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 ...
0
votes
0answers
69 views

Customize search results to include custom posts and display in a specific template page

Below I have a function working that includes my custom posts in search results. I would like to now display these results in a specific template. I tried adding the two commented out lines but it's ...
0
votes
0answers
15 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 ...
2
votes
1answer
39 views

How to change “Dashboard” text in wordpress

I need to change "Dashboard" text in wordpress admin section. Any idea how I can accomplish this?
0
votes
3answers
47 views

Categorise Custom Post Types

I don't want to add the category support for the posts of a certain custom post type but to categorize the post types itself. How is that possible? Story behind: In my theme I handle different post ...
0
votes
1answer
42 views

Custom permalink based on custom post type fields

I'm workin on new webiste and I got stuck :( Basically I've created a custom post type for products with custom fields etc. Each product has a main category and subcategory - selected from ...
1
vote
0answers
18 views

Allow guests to use WP Customizer but disable save button

I've seen in some WP demo themes that developers let users to see a theme customizer (allowing to try the customizations) disabling the save button as well. So the question is how to do that in a ...
1
vote
1answer
30 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
1answer
22 views

Taxonomy template by post type

I have 2 custom post types that share a taxonomy. The taxonomy template of my taxonomy ( taxonomy-my_tax.php ) will query both custom post types. Is there a way to have a taxonomy template for each ...
0
votes
0answers
35 views

Link (by categories) to the first and last posts in custom post type

Link (by categories) to the first and last posts in custom post type For a new theme, I created a “story” custom post type. The main content has a different style than the blogging part, with ...
1
vote
2answers
95 views

OrderBy multiple custom meta fields

I have a custom post type in my plugin named members, along with two custom fields; first_name and last_name. I am trying to order my listing my the last name, then the first name. The only solution I ...
0
votes
0answers
16 views

Get theme setting from javascript

Is it possible to read a theme customization from javascript? I tried wp.customize._value but it always returns an empty object {}. I am trying to read the theme setting from a JS file included in ...
0
votes
1answer
20 views

Replace a 'Title' tag with a Custom Field

I have this code in my theme: <div class="article-navigation"> <?php previous_post_link('<div class="navigation-item navigation-item--previous">%link</div>', ...
0
votes
1answer
36 views

How to loop through 1 CPT with 2 Taxonomies

I have a CPT (Products) which has 2 taxonomies (Industry and department) I have the loop which delivers a "Product by Industry" which works Industry 1 • result 1 • result 2 Industry 2 • result 1 • ...
0
votes
1answer
17 views

Make User Role a Filter

I have a backend which I'm trying to edit. Basically it says: If (any) user is logged in, show some records, else show nothing. I'd like to limit this to a certain role named "Administrator", like ...
0
votes
1answer
46 views

Wordpress custom search - pagination

I have written a custom wordpress search. The problem is that the pagination is not working. The pagination (1, 2 , 3 , 4 ,5 >>) appears on the web site, but when i press page 2 (or anything else) no ...
0
votes
0answers
22 views

If it is a top level category show children otherwise show sibling categories

I found a great piece of code for my category.php file to list categories for a specific taxonomy (not tested). BUT - how can I change the code (or achieve it) to show the default Wordpress categories ...