The server-side programming language that the WordPress core, plugins and themes are written in.

learn more… | top users | synonyms (1)

0
votes
0answers
59 views

Display image from an external rss feed on wordpress without plugins

I am trying to add an external RSS Feed to my wordpress theme. Displaying the feed content and title was a success. But I don't see any option to display the image from the external feed. I tried ...
5
votes
1answer
104 views

Inject post (from specific category) between posts in Loop

I would like to add a post (from specific category) between posts in the WordPress Loop (such as 'Sponsors'). Example: P P P S P P S P P S P P How can I achieve this? I am a beginner with coding, so ...
0
votes
1answer
25 views

Check in which custom taxonomy belongs and change the style

I want to change the css style of a single.php which belongs to a custom taxonomy, based on the category. I achieved to do it in taxonomy.php for some of the categories but i can't make it to work on ...
0
votes
1answer
31 views

Create custom permalinks to show Custom Post Type's relationship?

I'm creating a WordPress site that has 3 custom post types registered: course, chapter, and lesson. All of these post types are inter-connected and share a relationship using custom fields. For ...
0
votes
0answers
22 views

Programmatically choose a background-color to go with an image?

Is there a function, either in PHP or Wordpress itself, or in a plugin, that will choose a good css background-color to go with a given background-image? For example, if someone chose a very large ...
0
votes
1answer
42 views

Create special button on WP Tiny MCE Posts Editor for Shortcodes

I am trying to create a special button on the Tiny MCE editor on the Post Editor of Wordpress. I want to create a button for my created shortcode tooltips. Check out my desired output: ...
0
votes
1answer
14 views

Why when I create a new post I found 2 record related to this post into the posts database table?

I am very new in WordPress development and I have a doubt about the WP database table named posts I have observe that when I create a new post (into the WP administration panel) are created 2 record ...
0
votes
0answers
8 views

How remove Wordpress Impression from my website [duplicate]

I am developing one wordpress theme for client. I completed the theme. But he is asking about remove the wordpress theme impression. Here impression means when i try to see view page source i am able ...
0
votes
1answer
48 views

Why WordPress architecture is not pure object oriented and it don't use MVC pattern? [closed]

I am pretty new in WordPress and PHP development (I came from Java and C#) and I am a bit astonished about how WP is structured. Coming from Java and C# I'm used to work on totally object oriented ...
0
votes
2answers
52 views

If or/and statement advanced custom fields [closed]

I'm really unexperienced when it comes to conditonal statements with php and unfortunately the documentation of Advanced Custom Fields isn't covering this topic as fair as I know. But anyway, what I'm ...
0
votes
0answers
21 views

Custom Search not working

Can any Wordpress Guru figure out why my custom search form just reloads the page when submitted? I'm trying to create a custom search that uses two dropdowns only (no text input). The first ...
1
vote
1answer
47 views

How to show only a certain part of the entry title?

Working on a project that I'm running into a snag about... I have a page title using the_title() ... that has a location in the title such as this: "Adventure Dental - Colorado Springs, ...
0
votes
4answers
32 views

How to obtain the current website URL in my theme?

I am working on a custom theme and I have the following doubt about how to correctly insert the link to some section of my website into the theme. If you open this link you can understand what I need ...
0
votes
2answers
21 views

Syntax error when I try to insert my loop into an unordered list? [closed]

I am very new in PHP and WordPress development and I have the following problem trying to insert some HTML code into the posts loop. I tried something like it: <?php if (have_posts()) : ...
1
vote
1answer
25 views

How to Reference/Echo Variable from Another PHP Function

I have successfully set up a PHP function for my blog posts to create a shortcode to automatically display/style an iFrame tag for a YouTube video, as well as pull in the duration and view count ...
0
votes
1answer
27 views

Plugin Hook: Get posts

I am building a WP plugin. It shows several featured post images with titles atop. It will have a spot on the admin bar to tell it what the featured posts are. What hook do I use to get the post's ...
0
votes
2answers
27 views

Differences when using the the_time and the_date functions

I have some doubts about how work the WordPress the_date() functions definied into general-template.php In a page I show the posts archive using this code snippet into a loop: <article ...
0
votes
0answers
7 views

How to access page list themes

I am modifying a WP theme. How do I access the list of WP pages? (As in what functions do I use?)
0
votes
1answer
28 views

Can I show also the post date using the wp_get_archives() function?

I am pretty new in WordPress theme development and I have some doubt about the wp_get_archives() function: http://codex.wordpress.org/Function_Reference/wp_get_archives In my website I have create ...
0
votes
0answers
13 views

Custom subscription abandonment

I'm using a subscription service through a small third-party company. I've asked them to consider sending emails to users that drop-off from the subscription but they don't want to implement such a ...
0
votes
0answers
13 views

Creating a filter to modify links ending in .pdf

I'm trying to create a filter that checks for links that are to PDFs, and append the href attribute with something like /form?file=[path to pdf]. For example, starting with: <a ...
0
votes
1answer
27 views

Getting the slug into a variable, how to echo that variable

The page slug for each of our wordpress articles is a unique set of seven digits, and we are using that string of numbers as the page slug. In trying to learn how to customize our site even further, ...
0
votes
2answers
37 views

I can't seem to get excerpts showing inside get_pages and don't know why?

So, I have a foreach loop within get_pages that shows a list of child pages within a parent ID. The titles, featured image, and links come through fine, however I can't get excerpts to show up at ...
0
votes
1answer
30 views

Conditionally load class in the comment section of the post page

I want to be able to conditionally load a class containing the word 'AUTHOR' in the comments section, next to the name of the person who was the author of the post. I know it has something to do with ...
0
votes
0answers
26 views

Internal Server Error 500 with Custom PHP file

I am trying to create a gallery with multiple sortable albums since there are so many pictures. I am doing this by enabling categories on media items, looking up a specific category, gettings all the ...
0
votes
2answers
85 views

Show last 5 posts from featured category on query carousel slider with prev and next button

I managed to set up a query carousel slider on my test-site. How can i adapt the slider to show the 5 latest posts from my featured post category with thumb, title and link to the post instead of the ...
0
votes
1answer
29 views

Fluid Featured Post Carousel Slider for Wordpress with no Javascript

I implemented a pure CSS Slider without Javascript on my Test-site with 5 image slides. How can i adapt the slider to show the 5 latest posts from my featured post category with thumb, title, excerpt ...
0
votes
0answers
26 views

how to transfer the post content from index / category/Archive page to another page with a form?

I have a wordpress site ! I want to insert a link below each article/post on the index/category/archive page which on click , i want to open a page which has a FORM with title and a message text ...
0
votes
2answers
45 views

If Month=Particular month display content [closed]

I want to use conditional tag to display content according to month. Such as if it is April, it should show something else something else. Right now I am using : <?php if(is_month() == '2' ) : ...
0
votes
0answers
36 views

Redirect URL to a specific page

I am creating a plugin, in which I send newsletters to subscribed users. To do this, I first created a form, in which users enter their email-id, and been subscribed. After subscribing, they got an ...
0
votes
1answer
26 views

How to pass username into form that sends data to database

I am trying to pass username to database through form: [insert_php] $current_user= wp_get_current_user(); $id= $current_user->user_login; [/insert_php] <input type="hidden" name="id" ...
0
votes
1answer
64 views

Adding data to custom wordpress database table

I have a form on a page that populates the database table: <table border="1"> <tr> <td align="center">Form Input Employees Data</td> </tr> <tr> ...
0
votes
0answers
19 views

How to connect database table to each registered wordpress user.

When registered user visit certain page, I want him to be able to add some 3 column data to a database that can be retrieved for him later. The way I see it implemented is by automatically adding an ...
0
votes
1answer
38 views

Setting pages for posts

This is my json rest api function. When called, it returns 24 posts, but there are much more in total. How can I page the response so I can change pages with something like ?page=2 to be added to curl ...
-1
votes
1answer
34 views

Customise Author Page?

On my website I would enjoy to make it so that if a reader clicks an author or user's name it takes them to a page displaying their profile picture and bio. All users on my blog have the option to add ...
0
votes
0answers
61 views

Search inside a custom taxonomy for multiple words doesn't return anything

My goal is to perform a search inside a custom taxonomy field. The page is an archive including a lot of books and magazines, and they have to be searched through, let's say, 'Authors','Title' and ...
0
votes
1answer
45 views

Get latest post from all categories except one

I trying to get all the latest post from every category, but I discovered I must ignore one of them. I don't want to show it at all. My problem is I don't know what syntax to write ifelse in this ...
0
votes
2answers
49 views

How to determine if the sidebar is empty? Or not active?

I used is_sidebar_active('NameOfSidebar'), but it seems not working. It returns false all the time. I wanna have a condition that goes like this if('sidebar is not active'){ //must not display the ...
0
votes
0answers
38 views

Perform internal redirect in WordPress?

Let say I have an existing page named "bar", e.g. http://www.example.com/bar I want to write a plugin, which when called, will load the content exactly same as bar (not just post_content, but the ...
0
votes
1answer
39 views

Remove echo from shortcode

I've just started playing with shortcodes and due to my lack of php knowledge I am unable to figure out how to make this shortcode work without using php echo. Can anyone help me revise my code? // ...
0
votes
0answers
145 views

Fatal error: Call to a member function get_results() on a non-object in on line 26

Ok so I am trying to chain select boxes from a my database. First select box grabs the values just fine. If I hard code all of the select boxes they all return values and as expected do not interact ...
0
votes
0answers
34 views

Getting attributes from custom_post input

I'm having custom field created like that: function woocommerce_form_field_numeric_2( $key, $args, $value = '' ) { global $woocommerce; $defaults = array( 'type' => 'number', 'label' => '', ...
0
votes
2answers
22 views

How to exclude post from being queried based on custom meta value

I am building a reviewing system for user-submitted posts on my website. I have a page called page-review.php which displays the oldest post of the "pending review" category. This is to ensure that ...
-1
votes
2answers
25 views

How to modify this function to exclude also the post belonging to a specific category?

I am very new in WordPress development and I have the folglowing problem. I use this function (declared into the functions.php file of my theme) to modify the main query in such a way that the post ...
5
votes
2answers
157 views

username_exists() function can't be access without logging in

I'm using the following function in functions.php to check if a username exists in the DB function check_username() { $username = $_POST['user']; if ( username_exists( $username ) ) { ...
0
votes
1answer
15 views

Saving a post ID to use in a form elsewhere on website

I am trying to save a certain queried post's ID to pass on in a form outside of my loop. To be more specific. I have one file named review.php, this file contains a Wordpress Loop which queries one ...
0
votes
0answers
27 views

wordpress - ajax communication

This is the first time I do the ajax and I must confess that I am confused. What I want to do is to take the value of 3 Select html to make a request to my database that'll get me a score according to ...
0
votes
1answer
18 views

Unable to Call More than One Meta Box Output

I have a custom meta box with multiple text fields. I use this to call the information in the first box: <?php the_post(); echo get_post_meta( get_the_ID(), 'dbt_text', true ); ?> And this to ...
0
votes
1answer
75 views

Exclude Custom Post Type from shared Custom Taxonomy

I have a few custom post types and two of them are sharing a custom taxonomy. Is there a way to list the terms of that taxonomy for only one of the custom post types? At the moment I can get a list ...
0
votes
0answers
4 views

Run shortcodes in custom setting value that holds user supplied HTML in my header?

My plugin I built for a client shows a special header type banner/head section for a visitor on every nTH visit to the site. I have a setting where the user picks the number for nTH visit to show ...