The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
35 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
24 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
1answer
20 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 ...
0
votes
2answers
32 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 ...
4
votes
1answer
59 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
2answers
45 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
25 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
41 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
32 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
25 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
52 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 ( ...
0
votes
0answers
32 views

How to hide terms if post is equivalent to draft?

The issue is if you are displaying a term list somewhere it will show the terms tied to draft posts as well. How can I make drafts not register to the taxonomy until published?
0
votes
2answers
2k 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
0answers
112 views

Filter Users Using Custom Admin Role

I have created a custom user role in my WordPress installation called Inactive, which identify users that don't write posts or pages anymore (This role was created for archival purposes, as a kind of ...
1
vote
1answer
568 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
3answers
35 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 ...
0
votes
0answers
121 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
2answers
248 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( ...
-1
votes
1answer
71 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. ...
0
votes
0answers
42 views

Create a list of sites on the network (multisite)

I'm using shardb which splits the database into multiple. I'm trying to make a page that will list all the sites on the network but I'm unable to do it cause they're on multiple database so this theme ...
1
vote
2answers
155 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
108 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
94 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
28 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
0answers
21 views

Archive list with only years and months belonging to a category

I need to generate a list of years and months belonging to a category. For example I have two main categories (A and B). I need a list of years and months of post published only of the category A and ...
0
votes
0answers
17 views

wp_list_categories output /defaultcategory+category2/

I need output this /default_category+ and add after that comes all site categories and then list those. I need to list this so I can make ready list, so user can search post that are in under default ...
0
votes
0answers
13 views

Listing authors, discription and rss feed in alist

I'm trying to list my sites authors, their description, and rss feed link on a single page. I have experimented with the author_list functions with scattered results. Can anyone point me in the right ...
0
votes
1answer
766 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
51 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
59 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
2answers
95 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
37 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.
0
votes
0answers
29 views

Would like to be able to take list of pages, and place them into an array

Well...title says it, but here are the details. I would like to take a list of all of the active wordpress pages on my site, and place them into a list. This list is generated by an array (it uses ...
0
votes
1answer
120 views

Create a Page Template Which Displays All Posts by Current User

I would like to create a page template that will display all of the posts by the currently logged in user. I managed to find an older thread which contained this code: if ( is_user_logged_in() ): ...
0
votes
1answer
62 views

AZ Directory category

Hi i would like to create an A to Z index of category of 3 rows. How would i go about in doing this? Example: ABCDEFG... A title of category started with the letter A B title of category started ...
2
votes
2answers
138 views

Editing a Post, 99% CPU?

I have a blog with ~15k posts, and a DB size of 14.4M. The website works blazingly fast from the front end, but post-edit and post-listing screens hang - either loading partially or not at all. Even ...
0
votes
1answer
44 views

How to use numbered lists in the post editor?

I have troubles to use numbered lists in the post editor. I want to have a numbered list where each number could have few paragraphs inside. Something like List one some text paragraph two for ...
0
votes
2answers
69 views

Listing pages which uses specific template [duplicate]

I have created a template named product.php with the following header: <?php /* Template Name: Product Page */ How can I list, in a sidebar, every page that uses the "Product Page" template? I ...
0
votes
0answers
14 views

List posts grouped by year [duplicate]

I'm really stuck on this one: Show ALL posts grouped by year 2013 title1 title2 title3 title4 2012 title1 title2 Can someone help me with this?
1
vote
1answer
157 views

How do you List all Sidebars in a Metabox

I know this question has been answered many times before, including here where i came from so it'll probably be real simple. I've registered my sidebars as normal function wmw_sidebars() { // ...
0
votes
1answer
967 views

Getting an alphabetic post list with two letters onclick on letter

I have a website in Wordpress and a page with a list with letters like this: A B C D E F G H I ... This shows me all posts with the letter A for instance. That's nice, but I want it to make it ...
0
votes
1answer
113 views

Output list from each line of metabox (shortcode)

Hey I have a textarea in my metabox and I display the info using a shortcode. I want to output the data from that metabox as a list (each line is a list item). I used the code from here but changed ...
0
votes
1answer
235 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
95 views

List a custom post type's posts ordered by nested custom taxonomy

Like the title says I have custom post types and custom taxonomy for that type. For the Taxonomy I have terms in 3 levels like this: -> Term 1 --> Term 1a --> Term 1b -> Term 2 --> Term 2a --> Term ...
0
votes
0answers
28 views

link generated term list to latest post of term

i use the following code to generate a unordered list of all terms within a taxonomy and a nested list with all posts of the terms direct under the lsit item of the term <ul ...
0
votes
0answers
2k 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
1answer
77 views

Search tag within category

How do I search a tag within a category? like if a user is viewing a post that belongs to category "Romance" and the user clicks on one of the tags like for example "blonde" it should list all posts ...
0
votes
0answers
49 views

Show list of posts only on category site

I used the following code to create a list of my custom categories and custom post types: <ul> <?php $custom_terms = get_terms('project_category', ...
0
votes
0answers
38 views

display admin content in the public site

I would like to display the page list or post list (or similar from plugins) from the Admin section to logged in users on the front-end of my wordpress site. Any idea how I can do this? I need to ...
0
votes
2answers
598 views

Create shortcode for list of custom post titles with custom fields alongside

I'm stumped. I've looked at various sites but haven't found the exact code I need. Basically I want to create a list of custom post titles with the date from one of the custom fields for that post ...