The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
640 views

How can I display all values of a custom field from posts with a certain value of another custom field or from certain post types?

I know the question is quite ambiguous. Let me explain: I have a page that lists all posts with a certain value of a custom field. (Eg.: The page Rentals lists all posts with the value rental of ...
0
votes
2answers
3k views

Dropdown List Won't Display Selected Option After Submit / Refresh

I created a user form on my index page which allows the site visitor to re-order my post loop order based on either most recent posts or highest rated posts. The form works perfectly, the problem is: ...
0
votes
2answers
532 views

List all taxonomy terms / Show links if posts are attached, else names

I'm looking for a way to list all the terms from a custom taxonomy. Only the terms that have posts attached to it should have links to the archive page. If there are no posts attached it should only ...
0
votes
1answer
20 views

List sub-taxonomies from current taxonomy

I have a custom taxonomy called book with terms: 'science fiction', 'romantic', 'history' Each of these Taxonomies have 4 sub-taxonomies, that I need to display as a sub navigation. I'd like first to ...
0
votes
0answers
24 views

create a posts list in admin login and use it

I need to implement a custom related post type of section when someone open a wordpress post. But the list should be manually populate from the wordpress admin area. For an example, I will create ...
0
votes
0answers
10 views

Text with sub bullets not saved correctly

I'm having problems with sub list items. In my backoffice it looks like this (text is blurred): Visual: Text: In the text editor it looks good but when I save the post I get this in my database ...
0
votes
1answer
320 views

How to List all Sidebars in a Metabox

I'm trying to add a metabox to every page that is a drop down list of all registered sidebars that is then saved in a custom field. I'm using this metabox class I've gotten as far as this: // get ...
0
votes
1answer
25 views

List all posts, pages and custom post types in admin

I want to create a drop down in my WordPress admin containing all posts, pages and custom post types. The return value should be a link to that page or an ID of the page. Is there something build in ...
5
votes
4answers
6k views

wp_nav_menu: show menu only if one exists, otherwise show nothing

I'm trying to use wp_nav_menu to only display a menu if one exists, otherwise, display nothing. If I delete the menu, it will output a list of the pages. My functions.php file contains: if ...
1
vote
1answer
29 views

How to convert custom post type based list to a dropdown list?

I have been created a query to list the post from current taxomony, filt by term slug for my book site (as table of content). And it worked very well. But, is there any way to convert it to a dropdown ...
0
votes
1answer
29 views

add links to list of post terms

How do I change the function below so that it outputs a list if links rather than a string? The resulting html I need is <a href="#">term</a> <a href="#">term</a> <a ...
0
votes
2answers
47 views

How to get the title of root li element

I want to get all info of top level menu from childrens <li class="l-nav-item dropdown"><button class="open-icon visible-xs fa fa-angle-down"></button><a href=" ...
0
votes
0answers
19 views

How to filter displayed posts like what we can see on products page [duplicate]

I wanna know if there is a way to filter displaying post on clicking on menu or a link. I know that there is some ways for admin post list, but i want it for front pages. I think we can do that by ...
0
votes
0answers
29 views

Click on link to filter displayed posts like what we can see on products page

**I wanna know if there is a way to filter displaying post on clicking on menu or a link. I know that there is some ways for admin post list, but i want it for front pages. I think we can do that ...
1
vote
1answer
67 views

How to get a category in a list item class

I am need to know how would I get the category to be dynamically input in a WP_Query This is the code I am using: <li class="<?php the_category(' ')?>"> but the output is breaking. ...
0
votes
1answer
99 views

Hiding by default specific post status on backend list?

I created various custom post status options (like default ones: "published", "draft" and so on) and one of them is "project closed". I need to hide/exclude by default from post list in the backend ...
1
vote
2answers
35 views

how to change appearence of the content of default post list columns?

Speaking about backoffice here. I usually add columns and filters to the backoffice for certain custom post types. No problem here. BUt what if I would simply like to change something on the content ...
5
votes
2answers
948 views

How to display by default only published posts/pages in the admin area?

As it is, WordPress displays by default all the pages/posts in the pages/posts list in the admin area, no matter what their publishing status is. I have a lot of drafts, but usually I'm much more ...
1
vote
1answer
1k views

wordpress wp_list_categories

i'm using wp_list_categories like so: <?php //list terms in a given taxonomy using wp_list_categories (also useful as a widget if using a PHP Code plugin) $taxonomy = ...
0
votes
1answer
44 views

Author list based on recently active

My list of authors is now based on post count and I would like it to be based on recently active user. My idea was trying changing the orderby to post_date but it has no effect. Any suggestions to how ...
0
votes
0answers
32 views

custom post type taxonomies order desc

this code works fine here http://wellspringchurchnc.org/redesign/sermons/ but i can't seem to change the order to display in descendent $args = array( // 'posts_per_page' => 1, //'order' ...
0
votes
1answer
51 views

Show template loaded

Is there any way to see what .php files are being loaded for a particular page? So say I have a page - www.example.com/page - and on it is loading the header.php, sidebar.php, footer.php, and the ...
0
votes
0answers
29 views

Display Pagination on Table

I have written the code below: <?php $ListTransfer = $pwtw_db_connect->get_results ( $pwtw_db_connect->prepare ( 'SELECT * FROM donation_bank WHERE trans_wp_id = %d AND trans_svr_region = ...
0
votes
2answers
833 views

List all sites in multisite

I want to list all sites in the multi site network in alphabetical order? Right now, the code lists by registered date <?php // Query for getting blogs $blogs = $wpdb->get_results( ...
0
votes
1answer
54 views

List all pages using a specific template on a page

I just created a WordPress page called Latest Blog Posts where I want to list, in chronological order, all pages from my website using the template name "Blog". The list should contain the title of ...
1
vote
2answers
2k views

wp alchemy multiple image uploader output images to template

I am using wp alchemy to add a custom metabox to my site with multiple image uploader option. This part is working fine, but I have no Idea how to go about outputting the image links to my template. I ...
0
votes
2answers
112 views

Display all posts from selected month

I am trying to display all posts from a selected month. Currently once I select a month, only 10 posts display. I understand I can increase the amount of posts to show under the 'reading' options ...
16
votes
8answers
14k views

How to show a hierarchical terms list?

I have a hierarchical taxonomy called 'geographical locations'. It contains continents on a first level, and then the countries for each one. Example : Europe - Ireland - Spain - Sweden Asia - Laos - ...
4
votes
1answer
88 views

How to put last edited entry on top of the blog-post list?

In the list of my blog posts, the "last published" entry is on top. I'd like to view the "last edited" entry on top of that list. I couldn't find a setting for that, so how can I realize it?
0
votes
1answer
31 views

Simple term-archive-linked Taxonomy Entry output

I've registered a Taxonomy named "type" and linked it to the Custom-Post-Type "group". I simply want to output term archive-linked entrys of the Taxonomy "type".
0
votes
1answer
157 views

List categories with custom code

Right now, and taking from http://codex.wordpress.org/Template_Tags/wp_list_categories we can use the following code to list categories in a wordpress page: <?php $args = array( ...
0
votes
2answers
49 views

Display formatted list of taxonomy terms with last seperator different

I am trying to display a list of event producers, which are stored as a taxonomy. For each event (custom post type) there can be anywhere between 1 and many producers, so I would like to list them, ...
0
votes
1answer
28 views

Output categories in something different than a list

I wanted to output all my categories in the sidebar of my wordpress theme. Now I use the function wp_list_categories(); which works fine. However it always displays the categories in a list and I ...
0
votes
2answers
136 views

Authors & profiles (and exclude ID's)

I'm facing the following: I need to create a page with all authors and exclude multiple (id's). Strangely I'm using 'subscribers' to list the authors but it's working. <?php if ( ...
1
vote
1answer
965 views

Change an li class name in a wordpress custom menu walker

I'm building a nav that has a class applied to the main LI's and the nested LI's. Example: <ul> <li class="className">Test</li> <li class="className">Test <ul> ...
0
votes
0answers
155 views

How to display list of taxonomy terms of all posts in taxonomy archive?

I have 3 separate taxonomies, all with their own terms. When a term is clicked and the user is taken to that archive, I want to display a list of all the taxonomy terms associated with all the posts ...
0
votes
3answers
44 views

Display A list of Admins

I have a function that allows me to display ALL users on my site, but I was wondering if there was a way to display Admins and Contributors in a separate loop? My current function: function ...
-1
votes
1answer
109 views

Foreach giving one too many list items, how can I remove the last empty line?

Hello Stackexchange users! I built a simple function to display a list of items from custom fields. However it is listing an empty last field on the front end and I cant figure out how to remove it. ...
1
vote
2answers
291 views

Change default screen option value for posts per page

I want to change the default screen option value for posts per page in the wp-admin area when listing posts in pending mode. The default value is set to 20. Changing the value directly in the Screen ...
1
vote
1answer
147 views

Can I wrap an unordered list inside a shortcode?

So, I created an events page for my client that holds lots of details about events. We found no particular event plugins to be helpful for their purpose, so I built a a custom template using advanced ...
0
votes
1answer
138 views

List first letter of categories - issue upon spcecial characters (danish letters)

I have a alphabetic list of custom taxonomies (Topics), all taxonomies are grouped by a index letter - A, B, C etc. The list uses the first letter of "Topic", to show as a index letter for each ...
0
votes
0answers
30 views

Menu of pages with an image

I'm getting really desperate and I need your help, I really tried and research and I couldn't find anything yet. I'm new at wordpress.. and I have this question, I hope you can help me... I want to ...
0
votes
2answers
788 views

Remove the <ul> Tag from wp_nav_menu

I want to remove the <ul> tags from the wp_nav_menu. I already found different posts about it here but they don´t seem to work for me. Here is what I did: First I registered the menu in ...
5
votes
3answers
4k views

How to list all network sites on one page

Can I list all the blogs in my network on one page?
1
vote
1answer
2k views

Add class to all list items of wp_nav_menu

I have a wp_nav_menu to which I want to add a classes to the list items. I know this can be done by choosing 'css classes' from the screen options menu, but then I have to give every single li a ...
0
votes
1answer
59 views

List of all entries of custom-post-type: Add year-parameter?

I've once got help with the following function: function get_event_list( $latest = true, $order = 'ASC', $return = false ) { $yesterday = time() - 24*60*60; $compare = $latest ? '>' : ...
0
votes
4answers
71 views

How to find the number of Tags a post has?

Is is possible to find how how many tags (and categories) a post has and to display it? something like this: when a post has three Tags and two categories, at the end of the post show that number ...
0
votes
0answers
3k views

Displaying list of cities according to the selected state. Using the WordPress hook

I come to ask the community a help of a simple hook on WordPress. I'm trying to display a list of states and cities in two dropdows to select a single option in the a form. The list of cities will be ...
0
votes
2answers
270 views

how to arrange the bullet list items in vertical [closed]

This is my test_site .In there the list items are displaying not in order. I know this is because of some silly css problem. but I don't know how to write the css to make them to display neatly. I ...
0
votes
0answers
42 views

How to get the list of users logged in to wordpress and expose it in JSON?

Is there a way to get the list of users logged in to wordpress site and expose it in JSON? Please throw some lights to achieve this.