This function is deprecated. Please use tp_publications::get_publications() instead.

Description

This function returns an array or an object of publications.

Usage

$array = get_tp_publications( $args, $count = false );

You can set $count to true if you want to receive only the number of publications.

Default Usage

$args = array(
‚user‘ => “,
‚type‘ => “,
‚tag‘ => “,
‚year‘ => “,
‚author‘ => “,
‚editor‘ => “,
‚exclude‘ => “,
‚include‘ => “,
‚order‘ => ‚date DESC‘,
‚limit‘ => “,
’search‘ => “,
‚output_type‘ => OBJECT
);

Parameters for $args

user

(integer) The ID of the user whose publications you want to show. You can separate more than one by comma.

type

(string) The publication types you want to show.

tag

(string) If you want to display only publications with a determined tag, so set with this parameter the tag-ID of this tag. You can separate more than one by comma.

year

(string) If you want to display only publications with a determined year, so set it with this parameter. You can separate more than one by comma.

author

(string) If you want to display only publications with a determined author. You can separate more than one author name by comma.

editor

(string) If you want to display only publications with a determined editor. You can separate more than one editor name by comma.

exclude

(string) Define a comma-separated list of publication IDs to be excluded from the list.

include

(string) Define a comma-separated list of publication IDs to be included from the list.

order

(string) Change the order of the list.

limit

(string) Limits the number of publications. Example: „0,30“ for the first 30 entries;

search

(string) Use this parameter for a search over names, booktitles, authors, editors, journals, years and isbns .

output_type

(string) You can choice between:

  • OBJECT (default)
  • ARRAY_A
  • ARRAY_N

Return

(array or object)

An array or object containing all the publications matching the request

The fields returned are:

pub_id

(integer) ID of the publication

title

(string) Title of the publication

type

(string) Type of the publication

bibtex

(string) BibTeX key of the publication

author

(string) The name(s) of the author(s) (in the case of more than one author, separated by and)

editor

(string) The name(s) of the editor(s) (in the case of more than one editor, separated by and)

date

(string) Date of publishing (YYYY-MM-DD)

year

(string) Year of publishing (YYYY)

urldate

(string) Date of visiting (YYYY-MM-DD)

isbn

(string) The ISBN/ISSN number

url

(string) Some URLs

booktitle

(string) The title of the book, if only part of it is being cited

journal

(string) The journal or magazine the work was published in.

volume

(string) Volume of the journal where the work was published

number

(string) Number of the journal where the work was published

pages

(string) Page numbers

publisher

(string) Name of the publisher

address

(string) Publisher’s address (usually just the city, but can be the full address for lesser-known publishers)

edition

(string) Edition of the resource where the publication can be found

chapter

(string) Chapter of the resource where the publication can be found

institution

(string) The institution that was involved in the publishing, but not necessarily the publisher

organization

(string) The conference sponsor

school

(string) The school where the thesis was written

series

(string) The series of books the book was published in

crossref

(string) The key of the cross-referenced entry

abstract

(string) The abstract of the work

howpublished

(string) How it was published, if the publishing method is nonstandard

key

(string)  A hidden field used for specifying or overriding the alphabetical order of entries.

techtype

(string) Additional type of publication (e.g. „Research Note“ for techreport, „{PhD} dissertation“ for phdthesis, „Section“ for inbook/incollection)

note

(string) Miscellaneous extra information

is_isbn

(integer) Says if the type of the number in the isbn field is a ISBN or ISSN number (1|0)

image_url

(string) URL of a publication image

rel_page

(integer) ID of a WordPress post or page

Example

Get all articles and inproceedings:

$publications = get_tp_publications( array('type' => 'article,inproceedings') );
foreach ($publications as $row) {
// put your code here
}

Changelog

  • Since: 3.1.8
  • 4.0.0: Parameter include added