![]() |
How to make bulk list from Wordpress posts?
hey trolls,
got a question: what if i would like to make a list of urls + descriptions with pipe delimiter like the list for TGPX from Wordpress posts so i could easy use it as galleries for TGPX - is it possible, do you know any plugin which can do this? |
Something like this?
open an empty file, copy/paste the code and upload to your sites root Code:
<?php |
here's another version..sorry, the code is a bit messy, but does the job you need
this will work with links, titles and descriptions.. you set the number of posts, separator and the order you want to display and it will display it to you... again, the code is messy as hell, but it works :) Code:
<?php |
Quote:
thanks a lot, let me know if you would have some asian site i'll help you start with some traffic :thumbsup |
you're welcome! have a great weekend ;)
|
:thumbsup thanks! I am going to try this :)
|
diggin up my old topic.
how can i get bulk list of posts with certain category? current code list posts from index page what if i want one category only, is it possible? this piece of code Zerovic wrote is really useful if i can pick up category i want it will be excellent. |
include cat variable with query_posts, like
query_posts('cat=ABC&showposts=' . $_POST['number']); where ABC is tag_ID of the category you want |
tried, but if i got let's say "Filipina Sex" category (filipina-sex slug) it should look like this:
query_posts('cat=filipina-sex&showposts=' . $_POST['number']); or query_posts('cat=filipina sex&showposts=' . $_POST['number']); ? cuz both ways won't work, still i got list of posts from index page not from filipina sex category. |
get tag_ID for filipina sex by going mouseover that category in wp admin. It's a number
here below is a version where you submit tag_ID through form slightly adapted Zerovic's code Code:
<?php |
Another way - Go to tools and export what you want:
http://i.imgur.com/MWbjdAz.png You can then import that into Excel or another spreadsheet and play with the data as much as you want - Then just save it as a CSV (pipe delimited) - It would give you more control over the data... |
almost perfect sir ;)
but smths is wrong with code. when i choose 10 posts to be listed it lists 30+ posts if ill choose to have url+description here's what i got: Page not found | Asian Sex[gallery link="file" ids="14862,14863,14864,14865,14866,14867,14868,148 69,14870,14871,14872,14873,14874,14875,14876,14877 ,14878,14879,14880,14881,14882,14883,14884,14885"]| beside this it's very ok, i can live without descriptions if it's a problem, however i don't know why it list 30 posts instead of 10 but if i put there 60 posts it's grabbed 60 so it's ok for me. thanks a lot for willing to help so far, appreciate :thumbsup |
well dunno I only slightly changed the code, will take a closer look later today
from what I see above it outputs posts, not excerpts if you have excerpt (description) for each post then you could get descriptions by replacing get_the_content() with the_excerpt () and it's simple code, go always with all parameters |
Quote:
|
thank you both guys Eddy and Stoka i've probably overcomplicated it using this script i didn't know about export option in wordpress i must admit :P
and thanks again Stoka for adding tag option for script, i like it and using it now ;) |
congrats all
|
All times are GMT -7. The time now is 08:31 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc