philipt18 on "[Plugin: Custom Content Shortcode] Creating index pages"

ساخت وبلاگ

So I'm trying to create some index pages of the resources on my site. It mostly for being able to do some sanity checking, and I'm not planning on exposing these pages to the general public. In any case, I idea is that they list all of the pages that have the same source, where the source is a specific web site, such as Wikipedia. I've tried to structure it so I can include the same text file on each page, and it will simply grab the source from the title of the index page. I thus don't need to change the code for each index page. This is what I have:

<table>
[pass field=title]
[loop type=page parent=213024 include=children field=type value=resource,dependency field_2=source value_2={Field}]
<tr><td>[field topic]</td><td>[field title-link]</td></tr>
[/loop]
[/pass]
</table>

Except I get nothing. I also tried simplifying it as:

<table>
[pass field=title]
[loop type=page parent=213024 include=children field=source value={FIELD}]
<tr><td>[field topic]</td><td>[field title-link]</td></tr>
[/loop]
[/pass]
</table>

But it still retus nothing. By the way, which should be quicker? The first query or the second?

In any case, what is wrong with this? Why isn't it retuing a list of all pages with the source that matches the title? I also tried hardcoding the source and it didn't help, i.e.:

<table>
[loop type=page parent=213024 include=children field=source value="Wikipedia"]
<tr><td>[field topic]</td><td>[field title-link]</td></tr>
[/loop]
</table>

I tried the above with and without quotes. Neither worked, but which is right?

In any case, any ideas why this isn't working?

Thanks.

https://wordpress.org/plugins/custom-content-shortcode/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 213 تاريخ : يکشنبه 9 خرداد 1395 ساعت: 16:34