3
votes
0answers
16 views

Custom field value based on other custom field values

I have a custom field value called points. Post 01 points = 5 Post 02 points = 10 Post 03 points = 8 I need to create another custom filed value called rank. Rank custom filed value should be ...
1
vote
0answers
22 views

Get image from parent category

I am creating a page which shows all post categories and image associated with the categories. Each category has a textbox for the user to paste an image's URL and the page will then display the ...
0
votes
0answers
11 views

modifying variables passed to the Wordpress LOOP, with IF/THEN?

good evening, i'm trying to make my coding as modular as possible. my site uses three different LOOPs, each to accomplish a different task with my posts/pages, and i've got each loop on its own file, ...
0
votes
1answer
17 views

Search plugin form on “Add Plugin” page not working

Search plugin form not working. Steps to produce: admin-> plugin-> Add New. This is used to search plugin but this form is not submitting. Wordpress Version 4.1.1
1
vote
1answer
25 views

WordPress Front end Form - Enable to Submit PHP Codes

I just create a front end form to submit posts for public persons. It works fine. I need to allow to submit PHP codes (because it is PHP tutorial site) via that form. I need to make sure it not ...
0
votes
0answers
9 views

How to Redirect /post-name.html to /categoy-name/post-name.html unbreak seo?

I wanna to redirect old permalinks post type to new permalinks automatically unbreak seo. My old permalinks: domain.com/post-name.html New permalinks: domain.com/category-name/post-name.html by in ...
0
votes
1answer
14 views

Question About Messing With Category Pages and Descriptions

For a long time I was trying to figure out how to add category descriptions to not only the top of the category pages, but also to the bottom as well. There seemed to be no solution to this (absent me ...
1
vote
1answer
26 views

Change Page's <title> Tag Using functions.php File

In my child theme's functions.php file, I'm trying to change a page's title tag: function custom_title() { return "Page Title"; } add_filter( 'wp_head', 'custom_title', 9999 ); The code above ...
-3
votes
0answers
39 views

WooCommerce Social Login - Usernames [on hold]

I was sent here by WooThemes as giving coding examples is apparently against their Support Policy? I'm hoping one of you have experience with this and I'm in the right place. As an FYI, I'm novice ...
2
votes
1answer
31 views

Remove username in emails or swap username for email

Is there anyway I can remove all instances of the username in all WP emails, or swap our the username for the email address? I have some code in my functions.php file that removes the username from ...
1
vote
1answer
24 views

Trying to establish connection to External Database

I'm trying to get a connection to a separate external database from the database the wordpress site depends on. I have a PHP file inside the same location of my theme, it is basically a blank PHP it ...
0
votes
0answers
15 views

Any way to use media (uploads) from one site in a new site?

I've had a wordpress site for a few years. Now I'm starting a new site (in a different language) which will use many of the same images from the old site. I don't want to duplicate media, as server ...
-1
votes
1answer
29 views

how insert how many post type in this function?

I have two type post and i want display both in tag. this function i can insert one post type, how insert two post type in this function function post_type_tags_fix($request) { if ( ...
0
votes
1answer
18 views

Excerpt of certain page to display on home page

I would like to ask something about Wordpress. For example: When i designing a web page, I want to have a column on homepage that displays an excerpt of the About Page(which is inner page). Is there ...
0
votes
2answers
22 views

How to put articles under a /blog directory?

I have a homepage, work (as parent pages) and several pages (as child), but when it comes to articles, I can't choose the relation between them and the page Blog. Resuming, I can choose the hierarchy ...
0
votes
1answer
32 views

How to change thumbnail src attribute?

I am working on a plugin that can generate a thumbnail from a URL, getting the first image from posts; it is similar to an auto thumbnail generator. I get all img tags, but the URL is changed. Here is ...
1
vote
1answer
8 views

SEO - Media File Name Updating

I've been asked to rename my images to better suit what they represent via keywords, for the purpose of SEO. However, I've noticed that modifying the media images name within WordPress doesn't in ...
3
votes
0answers
33 views

List of plugin updates in admin bar

In the admin bar, there is an icon that will tell you if there are plugin updates. Whenever you hover over it, it will say something like "1 plugin update". You have to click on it to go to the update ...
0
votes
1answer
18 views

Contact Form 7 - how manipulate data before mail is sent? [on hold]

I am creating a bilingual site. I have a form with various fields and one of them is a datepicker (using the template's tools - the datepicker passes thedata in a text field). When the user chooses ...
0
votes
1answer
41 views

How to get post with slug and exclude categories

I want to do a query to get posts with a slug and category__not_in. Here's what I do: $query = array( "name" => "test", "category__not_in" => array( 15 ) ); query_posts( $query ); ...
0
votes
0answers
19 views

WordPress with dash.js [on hold]

Is it possible to incorporate dash.js to the WordPress CMS to play video in MPEG-DASH format, otherwise, I’d like to know if there’s another plugin that allows me to do that.
3
votes
1answer
21 views

Removing link '<a>' from '<li>' menu for some “links” without JS

I want some of my navigation menu items to show plain text, without a hyperlink. Usually, this code appeared: <ul class="..." id="..."> <li><a href="">my item</a> </li> ...
-1
votes
0answers
13 views

MaxCDN W3Cache not working [on hold]

I've used this tutorial and the CDN doesn't work https://www.maxcdn.com/one/tutorial/setup-wordpress-with-w3-total-cache/ I've seen that the images are hosted on CDN but my site does not load any ...
1
vote
0answers
18 views

Get posts with condition on comment meta value

I have to fetch all the posts post_type=projects and post_status=publish which have the latest comment of type message older than 5 days with comment_meta value as key=value. I want to know how can ...
7
votes
2answers
69 views

How To Create A Paginated List Of All Categories On My Site?

I want to display an archive page with pagination that lists all the categories on my site, and each link goes to that particular category archive page. So this would be like an archive page of ...
2
votes
1answer
23 views

get_post_field - Title without paragraph

Normally I wouldn't insert a single post with a technique like this, but sadly this project requires it. I try to call the post_title with: echo apply_filters( 'the_content', get_post_field( ...
1
vote
1answer
28 views

How to show phpinfo() only in a new tab?

My problem is that I want to add a link to my plugin which should direct the admin user to a new blank page which shows phpinfo()? Can anyone direct me how to do this? I know WordFence has a feature ...
3
votes
1answer
27 views

add class to term_description

trying to filter the output of term_description to include a class https://codex.wordpress.org/Function_Reference/term_description function add_class_to_term_description() { ?> <?php echo ...
0
votes
0answers
20 views

Determine if a page has been saved yet and has an ID using PHP?

I have a metabox on the edit screen which will check a custom database table for existance of a record matching the current pages ID. If the record exist then I show all my data. If the record does ...
1
vote
0answers
11 views

wp_print_scripts runs twice

I am currently using a child theme of the Hueman theme. I am filtering the different JS scripts, page by page. So, I use the following function, in order to display which scripts are used: // ...
0
votes
1answer
23 views

How do i import Facebook post as wordpress post without duplicates? [on hold]

can any one Idea about how to import Facebook post to WP post? I am already use one or two plugin but its down the site and add more link on page load so its down my website also. And some time its ...
-1
votes
2answers
29 views

Ordered List - Numbers not showing up [on hold]

I am using WordPress 4.2.2 and using customize wordpress theme. I am facing one problem with this theme. Ordered List not showing in tag section. www.movhash.com & Numbers showing in pages like ...
-1
votes
1answer
21 views

After I install any theme, Wp-admin stops working [on hold]

My wordpress site is vaporizerireland.ie Themes are installed successfully for me, but once I press activate, it says: "The vaporizerireland.ie page isn’t working" The URL in my browser when this ...
0
votes
1answer
44 views

How to get a post's content? [on hold]

I'd like to known what is the best solution for getting a sepecific post's content. By slug, tag, id or category ? Or template assigned to this post ? I don't like the way to find this post by its id ...
0
votes
0answers
15 views

How to create form which sending post request to external web-site?

I'm new in wordpress and have some problems. I have a form created using wp-admin. I want to send post request with fields data when submitting. After that I want to show message depending on ...
0
votes
0answers
11 views

Events Manager -> display attendees (with ACF fields) per date [on hold]

I am trying to list attendees per date using the Events Manager plugin, ie: 1st Jan 2016 user1, user40, user30 6st Jan 2016 user12, user20, user98, user85 etc... This is my code ...
1
vote
2answers
27 views

Displaying ACF image field [on hold]

I'm trying to display a list of all my custom taxonomy terms with an image field that I have created in ACF. The ACF image field I have is <img src="<?php the_field('brochure_logo'); ?>">, ...
3
votes
2answers
46 views

Add custom search results to main WP search

I know, this question was asked before several times, but I didn't find the answer suitable for my task. I asked the same question on StackOverflow already, but, I guess, this community is more ...
-1
votes
0answers
15 views

Attachment not working with Simple Job Board [on hold]

I want to send the uploaded resume with HR notification mail. I am using Simple Job Board Plugin. To attaching resume in HR mail I find this article and tried with following code in function.php // ...
2
votes
1answer
48 views

Getting translated string through a variable

I am translating a website into different languages, and I have the following problem: Through the backend, user can select via a dropdown, a value (text string) from a list of 50 options. This ...
2
votes
1answer
30 views

Does Wordpress create mobile menus automatically?

I am using Wordpress 4.5.2 with a custom theme. I am a bit confused about WP and the theme customizations, what does the first and what the second. For example, fullscreen menus are managed by ...
0
votes
0answers
23 views

Is there a custom sort-order for this?

I haven't been able to find a solution to this, and suspect it's not possible so may have to do it manually. I have a cpt of 'channel', within which there's different channels - all of which have ...
-1
votes
0answers
16 views

how to update same column in loop mysql [on hold]

I have a value as an array of one column of mysql table ,so how do I use update query to update this value using PHP loop at once?
0
votes
0answers
21 views

add_query_vars_filter How to make my menu remember

I have a menu that can "open up" or "close" via JavaScript . This works. However when I click one of the menu entries the next page loads and the menu does not "remember" to be in the "open up" ...
2
votes
2answers
29 views

How to limit file type to be upload?

I have a custom page template with a form, that any visitor of the website can upload a file. Now, I want to restrict the file type that will be upload (docx, doc and pdf only) and I limit the file ...
0
votes
1answer
25 views

Creating another wordpress site as sub-domain of a wordpress site

Main domain: www.abc.com new wordpress: xyz.abc.com I have manage to work everything on the front-end part. both use the same database but different tables classified with their own prefixes. ...
-1
votes
0answers
24 views

Cannot save Meta Data in custom post

I am trying to wrap my head around Wordpress, and am really sturggling to understand how to save custom data. I have tried so many different ways, I have forgotten what I have even tried. // Custom ...
-3
votes
0answers
16 views

Shipping method does not display on admin panel / gift card does not pay for shipping [on hold]

I have two bugs in our Woocommerce store, and I cannot figure out why this is happening. Bug 1 - Shipping method is not displaying when a user purchases a product as a guest. Here is an example ...
0
votes
0answers
22 views

How build/rebuild thumbnails for wordpress image by php + mysql without plugins

This a part of my project $query5 = "SELECT ID FROM wp_posts WHERE post_name='".$post_id."'"; $checkpost= mysqli_num_rows( mysqli_query($conn_link,$query5)); //check if post exist ...
0
votes
1answer
20 views

Add custom field to attachments in a specific category

I have a working function that adds a meta field to all attachments (so I can enter the url of a video). I would like this field to populate only on attachments in the "video" category. I've tried ...

15 30 50 per page