Display Posts Shortcode

The Display Posts Shortcode allows you to fine-tune the posts you wish to display on a page.

Add the shortcode 

 in a post or page, and use the arguments to query based on tag, category, post type, and many other possibilities.

New posts will be displayed within one hour of publishing.

Examples

This will list the 20 most recent posts with the tag ‘Advanced’.

This will list the 10 most recent posts tagged ‘Advanced’ and display a post image using the ‘Thumbnail’ size.

This will list every post in the Must Read category, in alphabetical order, with the date appended to the end.

  1. [C++ Cookbook by Jeff Cogswell] Parsing a String Containing a Number in Scientific Notation
  2. Latex: Strikethrough text
  3. Reset GPU device and clear its memory
  4. Disable or increase WDDM TDR Delay
  5. Matlab: Extract numbers from a mixed string
  6. Set the path to a DLL file in Visual Studio
  7. Mapping a function over each cell in a cell array using arrayfun
  8. call matlab engine from c++
  9. How can I suppress MATLAB’s command window when calling it from c++/ Java?
  10. VS: fatal error LNK1158: cannot run ‘rc.exe’

This will display posts as an ordered list. Options are ul for unordered lists (default), ol for ordered lists, or div for divs.

This will display only the posts with an ID of 14 and 3.

↑ Table of Contents ↑

↑ Table of Contents ↑

Arguments

author
Specify the post author
Default: empty
Example:

category
Specify the category slug (or comma separated list of category slugs)
Default: empty
Example:

date_format
Specify the date format used when include_date is true. See Formatting Date and Time on the Codex for more information.
Default: ‘(n/j/Y)’
Example:

id
Specify a specific post ID (or multiple post IDs) to display.
Default: empty
Example:

image_size
Specify an image size for displaying the featured image, if the post has one. The image_size can be set to thumbnail, medium, large (all controlled from Settings > Media).
Default: empty
Example:

include_content
Include the full post content after the title.
Default: empty
Example:

  • [C++ Cookbook by Jeff Cogswell] Parsing a String Containing a Number in Scientific Notation

    Problem

    You have a string containing a number in scientific notation, and you want to store the number’s value in a double variable.

    Solution

    The most direct way to parse a scientific notation number is by using the C++ library’s built-in stringstream class declared in <sstream>, as you can see in Example 3-7.

    Example 3-7. Parsing a number in scientific notation

    #include <iostream>
    #include <sstream>
    #include <string>
    
    using namespace std;
    
    double sciToDub(const string& str) {
    
       stringstream ss(str);
       double d = 0;
       ss >> d;
    
       if (ss.fail()) {
          string s = "Unable to format ";
          s += str;
          s += " as a number!";
          throw (s);
       }
    
       return (d);
    }
    
    int main() {
    
       try {
          cout << sciToDub("1.234e5") << endl;
          cout << sciToDub("6.02e-2") << endl;
          cout << sciToDub("asdf") << endl;
       }
       catch (string& e) {
          cerr << "Whoops: " << e << endl;
       }
    }

    Following is the output from this code:

    123400
    0.0602
    Whoops: Unable to format asdf as a number!

    https://www.safaribooksonline.com/library/view/c-cookbook/0596007612/ch03s06.html

  • Latex: Strikethrough text

    with the ulem package this becomes:

    \usepackage[normalem]{ulem}
    \sout{Hello World}

    With the soul package this is:

    \usepackage{soul}
    \st{Hellow world}

    enter image description here


    https://tex.stackexchange.com/a/23712

  • Reset GPU device and clear its memory

     

    g = gpuDevice(1);
    M = gpuArray(magic(4));
    M  % Display gpuArray
    reset(g);
    g   % Show that the device is still selected

     

  • Disable or increase WDDM TDR Delay

     

    Since you’re running on windows, this may be nothing more than you hitting the windows TDR mechanism. Kernels that run longer than about 2 seconds on windows may trigger the TDR mechanism. Usually when this happens, you will see the screen flash to black and then repaint itself, as the GPU goes through the windows-triggered reset. You may also see a systray message. The exact behavior may also be different if you are running the code from within VS versus running from the command line.

    Refer to the above link or search on the CUDA tag for how to modify the TDR mechanism.

     


    Windows WDDM Driver Timeout Detection and Recovery mechanism can be disabled or the timeout can be extended to be greater than the default 2 seconds.Timeout Detection and Recovery is documented on MSDN.

    Nsight Visual Studio Edition Nsight.Monitor has settings to disable or increase the timeout. Otherwise, you can use the registry keys in the MSDN article. Make sure to restart the computer after making changes.

    I recommend that you increase TdrDelay before completely disabling TDR.

    Tesla GPUs can use the Tesla Compute Cluster driver which does not have a timeout watchdog.

     


    https://stackoverflow.com/a/13185441/4862158

  • Matlab: Extract numbers from a mixed string

    teststr = ‘Test setup: MaxDistance = 60 m, Rate = 1.000, Permitted Error = 50 Operator Note: Air Temperature=20 C, Wind Speed 16.375m/s, Altitude 5km (Cloudy)’;
    regexp(teststr,[\d])
    regexp(teststr,[‘\d’])
    regexp(teststr,[‘\d’],’match’)
    regexp(teststr,[‘\d+’],’match’)
    regexp(teststr,[‘\d+.?’],’match’)
    regexp(teststr,[‘\d+\.?’],’match’)
    regexp(teststr,[‘\d+\.?\d?’],’match’)
    regexp(teststr,[‘\d+\.?\d+?’],’match’)
    regexp(teststr,[‘\d+\.?\d*?’],’match’)
    regexp(teststr,[‘\d+\.?\d?’],’match’)
    regexp(teststr,[‘\d+\.?\d*’],’match’)

     


    https://www.mathworks.com/matlabcentral/answers/44049-extract-numbers-from-mixed-string#answer_54043

  • Set the path to a DLL file in Visual Studio
    1. Go to project properties (Alt+F7)
    2. Under Debugging, look to the right
    3. There’s an Environment field.
    4. Add your relative path there (relative to vcproj folder) i.e. ..\some-framework\lib by appending PATH=%PATH%;$(ProjectDir)\some-framework\lib or prepending to the path PATH=C:\some-framework\lib;%PATH%
    5. Hit F5 (debug) again and it should work.

     


    https://stackoverflow.com/a/2119707/4862158

  • Mapping a function over each cell in a cell array using arrayfun

    C=cell(2,2);
    C(1,1)={[1,1,1]};
    C(1,2)={[2,2,3]};
    C(2,1)={[3,3]};
    C(2,2)={[4,4]};

    myresult = arrayfun(@(c) norm(c{1}), C);
    

    Or more compactly,

    myresult = cellfun(@norm,C);

     

     


    https://www.mathworks.com/matlabcentral/answers/7174-mapping-a-function-over-each-cell-in-a-cell-array-using-arrayfun#answer_9831

  • call matlab engine from c++

    Engine* engOpen(const char* startcmd)启动Matlab引擎

    int engClose(Engine* ep) 关闭Matlab引擎

    int engSetVisible(Engine* ep,bool value) 显示或隐匿窗口

    int engEvalString(Engine* ep, const char* string)执行Matlab表达式

    mxArray* engGetArray(Engine* ep, const char* name)获取一个变量数组的值

    int engPutArray(engine* ep, const mxArray* mp)设置一个变量数组的值

    int engPutVariable(Engine *ep, const char *name, const mxArray *pm)同上

    mxArray *engGetVariable(Engine *ep, const char *name)获取一个变量

    int engOutputBuffer(Engine* eP,char* p,int n)获取输出字符串

     

     

    #include<Windows.h>
    /*********************************
    引擎调用
    *******************************/
    #include"engine.h"
    
    
    // link matlab sys lib
    #pragma comment(lib,"libeng.lib")
    #pragma comment(lib,"libmx.lib")
    #pragma comment(lib,"libmat.lib")
    
    
    int main(int argc, _TCHAR* argv[])
    {
        Engine* pEng=NULL;
        if(!(pEng=engOpen(NULL)))
        {
            printf("Open matlab engine fail!\n");
            return 0;
        }
        else
           printf("Open Engine Sucess!\n");
        engSetVisible(pEng,0);//隐藏matlab窗口
    
        mxArray *A=NULL;
        double init=2;
        A=mxCreateDoubleMatrix(1,1,mxREAL);
        memcpy((void*)mxGetPr(A),(void*)&init,sizeof(double));
        engPutVariable(pEng,"A",A);
    
        init = 1;
        memcpy((void*)mxGetPr(A),(void*)&init,sizeof(double));
        engPutVariable(pEng,"B",A);
    
        mxDestroyArray(A);
    
        //Sleep(3*60*1000);
        printf("start to create the fig\n");
        engEvalString(pEng,"t=0:0.2:7;plot(t,sin(t));");
        engEvalString(pEng,"figure;");
        engEvalString(pEng,"plot(t,A*cos(t)+B);");
        printf("Engine will be closed\n");
        system("pause");
        if(NULL!=pEng)
            engClose(pEng);
        printf("Engine is closed");
        return 0;
    }
    

    http://blog.csdn.net/u010177286/article/details/45276315

  • How can I suppress MATLAB’s command window when calling it from c++/ Java?

    调用引擎时显示/隐藏Matlab主窗口

    默认情况下,以engine方式调用Matlab的时候,会打开Matlab主窗口,可在其中随意操作。但有时也会干扰应用程序的运行,可用以下设置是否显示该窗口。

    int engSetVisible(Engine *ep, bool value);

    参数ep为打开的Matlab引擎指针,value为是否显示的标志,取值true(或1)表示显示Matlab窗口,取值false(或0)表示隐藏Matlab窗口。

    函数返回值为0表示设置成功,为1表示有错误发生。

    要获得当前Matlab窗口的显示/隐藏情况,可以调用函数:

    int engGetVisible(Engine *ep, bool *value);

    参数ep为打开的Matlab引擎指针,Value为用来保存显示/隐藏情况的变量(采用指针方式传递)。

    函数返回值为0表示获取成功,为1表示有错误发生。


    https://zhuanlan.zhihu.com/p/24886395

  • VS: fatal error LNK1158: cannot run ‘rc.exe’

    Found this on Google… I would assume that in your case you would copy rc.exe and rcdll.dllto visual studio 2012\vc\bin or wherever you have it installed:

    Part 2: FIX LINK : fatal error LNK1158: cannot run ‘rc.exe’

    Add this to your PATH environment variables:

    C:\Program Files (x86)\Windows Kits\8.0\bin\x86

    Copy these files:

    rc.exe
    rcdll.dll

    From

    C:\Program Files (x86)\Windows Kits\8.0\bin\x86

    To

    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin

    Or I also found this:
    Microsoft left a few things out of their MSVT package. Since no one knows whether they were left out by mistake or for license reasons, no one with MSVC is too interested in giving them out. A few Google searches turn up some tricky sources. Fortunately, Microsoft has finally wised up and solved this problem and many more.

    http://msdn.microsoft.com/vstudio/express/support/faq/default.aspx#pricing

    http://msdn.microsoft.com/vstudio/express/support/install/

    A good amount of MSVT missing files are there but the missing SDK files aren’t.

    and this:
    I had the same problem which I solved by doing this:

    1. Installing the Microsoft .Net Framework 2.0
    2. Adding the path of the .NET Framework files (for me “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727”) to Global compiler settings > Programs > Additional Paths within Code::Blocks.

    Now I can build and link resource files without errors.

     


    https://stackoverflow.com/a/14373113/4862158

include_date
Include the post’s date after the post title. The default format is (7/30/12), but this can be customized using the ‘date_format’ parameter.
Default: empty
Example

include_excerpt
Include the post’s excerpt after the title (and date if provided).
Default: empty
Example:

  • [C++ Cookbook by Jeff Cogswell] Parsing a String Containing a Number in Scientific Notation - Problem You have a string containing a number in scientific notation, and you want to store the number’s value in a double variable. Solution The most direct way to parse a scientific notation number is by using the C++ library’s built-in stringstream class declared in <sstream>, as you can see in Example 3-7. Example 3-7. Parsing a number in scientific notation #include <iostream> […]
  • Latex: Strikethrough text - with the ulem package this becomes: \usepackage[normalem]{ulem} \sout{Hello World} With the soul package this is: \usepackage{soul} \st{Hellow world} https://tex.stackexchange.com/a/23712
  • Reset GPU device and clear its memory -   g = gpuDevice(1); M = gpuArray(magic(4)); M % Display gpuArray reset(g); g % Show that the device is still selected  
  • Disable or increase WDDM TDR Delay -   Since you’re running on windows, this may be nothing more than you hitting the windows TDR mechanism. Kernels that run longer than about 2 seconds on windows may trigger the TDR mechanism. Usually when this happens, you will see the screen flash to black and then repaint itself, as the GPU goes through the windows-triggered […]
  • Matlab: Extract numbers from a mixed string - teststr = ‘Test setup: MaxDistance = 60 m, Rate = 1.000, Permitted Error = 50 Operator Note: Air Temperature=20 C, Wind Speed 16.375m/s, Altitude 5km (Cloudy)’; regexp(teststr,[\d]) regexp(teststr,[‘\d’]) regexp(teststr,[‘\d’],’match’) regexp(teststr,[‘\d+’],’match’) regexp(teststr,[‘\d+.?’],’match’) regexp(teststr,[‘\d+\.?’],’match’) regexp(teststr,[‘\d+\.?\d?’],’match’) regexp(teststr,[‘\d+\.?\d+?’],’match’) regexp(teststr,[‘\d+\.?\d*?’],’match’) regexp(teststr,[‘\d+\.?\d?’],’match’) regexp(teststr,[‘\d+\.?\d*’],’match’)   https://www.mathworks.com/matlabcentral/answers/44049-extract-numbers-from-mixed-string#answer_54043
  • Set the path to a DLL file in Visual Studio - Go to project properties (Alt+F7) Under Debugging, look to the right There’s an Environment field. Add your relative path there (relative to vcproj folder) i.e. ..\some-framework\lib by appending PATH=%PATH%;$(ProjectDir)\some-framework\lib or prepending to the path PATH=C:\some-framework\lib;%PATH% Hit F5 (debug) again and it should work.   https://stackoverflow.com/a/2119707/4862158
  • Mapping a function over each cell in a cell array using arrayfun - C=cell(2,2); C(1,1)={[1,1,1]}; C(1,2)={[2,2,3]}; C(2,1)={[3,3]}; C(2,2)={[4,4]}; myresult = arrayfun(@(c) norm(c{1}), C); Or more compactly, myresult = cellfun(@norm,C);     https://www.mathworks.com/matlabcentral/answers/7174-mapping-a-function-over-each-cell-in-a-cell-array-using-arrayfun#answer_9831
  • call matlab engine from c++ - Engine* engOpen(const char* startcmd)启动Matlab引擎 int engClose(Engine* ep) 关闭Matlab引擎 int engSetVisible(Engine* ep,bool value) 显示或隐匿窗口 int engEvalString(Engine* ep, const char* string)执行Matlab表达式 mxArray* engGetArray(Engine* ep, const char* name)获取一个变量数组的值 int engPutArray(engine* ep, const mxArray* mp)设置一个变量数组的值 int engPutVariable(Engine *ep, const char *name, const mxArray *pm)同上 mxArray *engGetVariable(Engine *ep, const char *name)获取一个变量 int engOutputBuffer(Engine* eP,char* p,int n)获取输出字符串     #include<Windows.h> /********************************* […]
  • How can I suppress MATLAB’s command window when calling it from c++/ Java? - 调用引擎时显示/隐藏Matlab主窗口 默认情况下,以engine方式调用Matlab的时候,会打开Matlab主窗口,可在其中随意操作。但有时也会干扰应用程序的运行,可用以下设置是否显示该窗口。 int engSetVisible(Engine *ep, bool value); 参数ep为打开的Matlab引擎指针,value为是否显示的标志,取值true(或1)表示显示Matlab窗口,取值false(或0)表示隐藏Matlab窗口。 函数返回值为0表示设置成功,为1表示有错误发生。 要获得当前Matlab窗口的显示/隐藏情况,可以调用函数: int engGetVisible(Engine *ep, bool *value); 参数ep为打开的Matlab引擎指针,Value为用来保存显示/隐藏情况的变量(采用指针方式传递)。 函数返回值为0表示获取成功,为1表示有错误发生。 https://zhuanlan.zhihu.com/p/24886395
  • VS: fatal error LNK1158: cannot run ‘rc.exe’ - Found this on Google… I would assume that in your case you would copy rc.exe and rcdll.dllto visual studio 2012\vc\bin or wherever you have it installed: Part 2: FIX LINK : fatal error LNK1158: cannot run ‘rc.exe’ Add this to your PATH environment variables: C:\Program Files (x86)\Windows Kits\8.0\bin\x86 Copy these files: rc.exe rcdll.dll From C:\Program Files (x86)\Windows Kits\8.0\bin\x86 To C:\Program Files […]

offset
The number of posts to pass over
Default: 0
Example:

order
Specify whether posts are ordered in descending order (DESC) or ascending order (ASC).
Default: DESC
Example:

orderby
Specify what the posts are ordered by. See the available parameters here.
Default: date
Example:

portfolio_type
If you are using the Portfolio post type, use this to get items from a specific portfolio type.

post_parent
Display the pages that are a child of a certain page. You can either specify an ID or ‘current’, which displays the children of the current page.
Default: empty
Example:

post_status
Show posts associated with a certain post status
Default: publish
Example:

post_type
Specify which post type to use. You can use a default one (post or page). For Portfolios use “jetpack-portfolio”.  Similarly, for Testimonials use “jetpack-testimonial”.
Default: post
Example:

posts_per_page
How many posts to display.
Default: 10
Example:

tag
Specify the tag slug (or comma separated list of tag slugs)
Default: empty
Example:

taxonomy, tax_term, and tax_operator
Use these parameters to do advanced taxonomy queries. Use ‘taxonomy’ for the taxonomy you’d like to query, ‘tax_term’ for the term slug (or terms) you’d like to include, and ‘operator’ to change how the query uses those terms (most likely this field will not be needed).
Default: ‘taxonomy’ = empty , ‘tax_term’ = empty , ‘tax_operator’ = ‘IN’
Example:

wrapper
What type of HTML should be used to display the listings. It can be an unordered list (ul), ordered list (ol), or divs (div) which you can then style yourself.
Default: ul
Example:

  1. [C++ Cookbook by Jeff Cogswell] Parsing a String Containing a Number in Scientific Notation
  2. Latex: Strikethrough text
  3. Reset GPU device and clear its memory
  4. Disable or increase WDDM TDR Delay
  5. Matlab: Extract numbers from a mixed string
  6. Set the path to a DLL file in Visual Studio
  7. Mapping a function over each cell in a cell array using arrayfun
  8. call matlab engine from c++
  9. How can I suppress MATLAB’s command window when calling it from c++/ Java?
  10. VS: fatal error LNK1158: cannot run ‘rc.exe’

↑ Table of Contents ↑

Multiple Taxonomy Queries

While most people will only ever need a single taxonomy query, this shortcode supports an infinite number of taxonomy queries. Let’s say you wanted to get all posts in category “featured” and also tagged “homepage”. We’ll use a shortcode that looks like this:

You can string as many of those as you like, just start the count at 2. In the field listing below, replace (count) with an actual number.

Here’s the available fields:

taxonomy_(count)
Which taxonomy to query
Default: empty

tax_(count)_term
Which terms to include (if more than one, separate with commas)
Default: empty

tax_(count)_operator
How to query the terms (IN, NOT IN, or AND)
Default: IN

tax_relation
Describe the relationship between the multiple taxonomy queries (should the results match all the queries or just one of them). Available options: AND and OR
Default: AND

↑ Table of Contents ↑

Image Alignment

A common request is display a list of posts with title, excerpt, and the thumbnail aligned to the right. Here’s the shortcode you might use:

[C++ Cookbook by Jeff Cogswell] Parsing a String Containing a Number in Scientific Notation - Problem You have a string containing a number in scientific notation, and you want to store the number’s value in a double variable. Solution The most direct way to parse a scientific notation number is by using the C++ library’s built-in stringstream class declared in <sstream>, as you can see in Example 3-7. Example 3-7. Parsing a number in scientific notation #include <iostream> […]
Latex: Strikethrough text - with the ulem package this becomes: \usepackage[normalem]{ulem} \sout{Hello World} With the soul package this is: \usepackage{soul} \st{Hellow world} https://tex.stackexchange.com/a/23712
Reset GPU device and clear its memory -   g = gpuDevice(1); M = gpuArray(magic(4)); M % Display gpuArray reset(g); g % Show that the device is still selected  
Disable or increase WDDM TDR Delay -   Since you’re running on windows, this may be nothing more than you hitting the windows TDR mechanism. Kernels that run longer than about 2 seconds on windows may trigger the TDR mechanism. Usually when this happens, you will see the screen flash to black and then repaint itself, as the GPU goes through the windows-triggered […]
Matlab: Extract numbers from a mixed string - teststr = ‘Test setup: MaxDistance = 60 m, Rate = 1.000, Permitted Error = 50 Operator Note: Air Temperature=20 C, Wind Speed 16.375m/s, Altitude 5km (Cloudy)’; regexp(teststr,[\d]) regexp(teststr,[‘\d’]) regexp(teststr,[‘\d’],’match’) regexp(teststr,[‘\d+’],’match’) regexp(teststr,[‘\d+.?’],’match’) regexp(teststr,[‘\d+\.?’],’match’) regexp(teststr,[‘\d+\.?\d?’],’match’) regexp(teststr,[‘\d+\.?\d+?’],’match’) regexp(teststr,[‘\d+\.?\d*?’],’match’) regexp(teststr,[‘\d+\.?\d?’],’match’) regexp(teststr,[‘\d+\.?\d*’],’match’)   https://www.mathworks.com/matlabcentral/answers/44049-extract-numbers-from-mixed-string#answer_54043
Set the path to a DLL file in Visual Studio - Go to project properties (Alt+F7) Under Debugging, look to the right There’s an Environment field. Add your relative path there (relative to vcproj folder) i.e. ..\some-framework\lib by appending PATH=%PATH%;$(ProjectDir)\some-framework\lib or prepending to the path PATH=C:\some-framework\lib;%PATH% Hit F5 (debug) again and it should work.   https://stackoverflow.com/a/2119707/4862158
Mapping a function over each cell in a cell array using arrayfun - C=cell(2,2); C(1,1)={[1,1,1]}; C(1,2)={[2,2,3]}; C(2,1)={[3,3]}; C(2,2)={[4,4]}; myresult = arrayfun(@(c) norm(c{1}), C); Or more compactly, myresult = cellfun(@norm,C);     https://www.mathworks.com/matlabcentral/answers/7174-mapping-a-function-over-each-cell-in-a-cell-array-using-arrayfun#answer_9831
call matlab engine from c++ - Engine* engOpen(const char* startcmd)启动Matlab引擎 int engClose(Engine* ep) 关闭Matlab引擎 int engSetVisible(Engine* ep,bool value) 显示或隐匿窗口 int engEvalString(Engine* ep, const char* string)执行Matlab表达式 mxArray* engGetArray(Engine* ep, const char* name)获取一个变量数组的值 int engPutArray(engine* ep, const mxArray* mp)设置一个变量数组的值 int engPutVariable(Engine *ep, const char *name, const mxArray *pm)同上 mxArray *engGetVariable(Engine *ep, const char *name)获取一个变量 int engOutputBuffer(Engine* eP,char* p,int n)获取输出字符串     #include<Windows.h> /********************************* […]
How can I suppress MATLAB’s command window when calling it from c++/ Java? - 调用引擎时显示/隐藏Matlab主窗口 默认情况下,以engine方式调用Matlab的时候,会打开Matlab主窗口,可在其中随意操作。但有时也会干扰应用程序的运行,可用以下设置是否显示该窗口。 int engSetVisible(Engine *ep, bool value); 参数ep为打开的Matlab引擎指针,value为是否显示的标志,取值true(或1)表示显示Matlab窗口,取值false(或0)表示隐藏Matlab窗口。 函数返回值为0表示设置成功,为1表示有错误发生。 要获得当前Matlab窗口的显示/隐藏情况,可以调用函数: int engGetVisible(Engine *ep, bool *value); 参数ep为打开的Matlab引擎指针,Value为用来保存显示/隐藏情况的变量(采用指针方式传递)。 函数返回值为0表示获取成功,为1表示有错误发生。 https://zhuanlan.zhihu.com/p/24886395
VS: fatal error LNK1158: cannot run ‘rc.exe’ - Found this on Google… I would assume that in your case you would copy rc.exe and rcdll.dllto visual studio 2012\vc\bin or wherever you have it installed: Part 2: FIX LINK : fatal error LNK1158: cannot run ‘rc.exe’ Add this to your PATH environment variables: C:\Program Files (x86)\Windows Kits\8.0\bin\x86 Copy these files: rc.exe rcdll.dll From C:\Program Files (x86)\Windows Kits\8.0\bin\x86 To C:\Program Files […]

This includes the excerpt, adds an image of the “thumbnail” size (you can customize the image sizes in Settings > Media), and tells it to present the list without bullets.

In order to get the image floating to the right, add this to your custom CSS file (requires theWordPress.com Premium or WordPress.com Business upgrade):

.display-posts-listing .alignleft {
    float: right;
    margin: 0 0 5px 5px;
}

↑ Table of Contents ↑

Limits

The Display Posts Shortcode has a limit of 100 posts displayed.


https://en.support.wordpress.com/display-posts-shortcode/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s