Okay
  Public Ticket #2206964
wordpress post
Closed

Comments

  • abanksob1 started the conversation

    i am trying to do a table with wordpress post ,ive went threw your manual few times and still keep runing into the same problem , first is grouping to show only one post and not show the same post with multiple category , when i try to group category i get an error , and if i group anything else it works but then the category filter dont work correctly , its shows all categories in one line as one ,

    second problem each post have external url iam trying to make the title clickable to original link permlink here is my sql code 

    SELECT posts_post.post_date AS post_post_date,        posts_post.post_title AS post_post_title,        CONCAT('<a href="',posts_post.guid,'">',posts_post.post_title,'</a>') AS post_title_with_link_to_post,        posts_post_author.display_name AS post_post_author,        GROUP_CONCAT(distinct post_taxonomy_category_tbl.name) AS post_taxonomy_category,        GROUP_CONCAT(distinct post_meta_original_link_tbl.meta_value) AS post_meta_original_link FROM wpag_posts AS posts_post   INNER JOIN wpag_users AS posts_post_author      ON posts_post_author.ID = posts_post.post_author   INNER JOIN (SELECT name, object_id as id FROM wpag_terms AS post_taxonomy_category_tbl_terms INNER JOIN wpag_term_taxonomy AS post_taxonomy_category_tbl_termtaxonomy ON post_taxonomy_category_tbl_termtaxonomy.term_id = post_taxonomy_category_tbl_terms.term_id  AND post_taxonomy_category_tbl_termtaxonomy.taxonomy = 'category' INNER JOIN wpag_term_relationships AS rel_post_taxonomy_category_tbl  ON post_taxonomy_category_tbl_termtaxonomy.term_taxonomy_id = rel_post_taxonomy_category_tbl.term_taxonomy_id) AS post_taxonomy_category_tbl      ON post_taxonomy_category_tbl.ID = posts_post.id    INNER JOIN (SELECT post_meta_original_link_tbl_posts.ID as id, meta_value, meta_key  FROM wpag_postmeta AS post_meta_original_link_tbl_postmeta  INNER JOIN wpag_posts AS post_meta_original_link_tbl_posts   ON post_meta_original_link_tbl_postmeta.post_id = post_meta_original_link_tbl_posts.ID   AND post_meta_original_link_tbl_posts.post_type = 'post') AS post_meta_original_link_tbl      ON post_meta_original_link_tbl.meta_key = 'original_link' AND post_meta_original_link_tbl.id = posts_post.ID  WHERE 1=1     AND posts_post.post_status = 'publish'    AND posts_post.post_type = 'post' GROUP BY post_post_date

    what changes i need to do  to make title clickable to the permalink and fix grouping issue also please let me know is it possible to show a table based on todays date only " allpost will be posted based on that day only "

    thanks in advance 


  •  2,572
    Aleksandar replied

    Hello abanksob1.

    Thank you for your purchase.

    Please note that this tool is not an ultimate query generator. It simply constructs a suggestion of a query. We are constantly working to improve it, but SQL is such a complicated and flexible language that full automation for constructing queries is next to impossible. Consequently, the more complicated the query, the higher is the probability that it will not return exactly what you need. So, you will often need to play around with the resulting query.

    Writing custom queries isn't included in the provided support for the plugin, so unfortunately I cannot help you with that.

    This is a rather complicated query generated by the constructor, so it'd take some time to debug it, but either way, a query with this many JOINS and CONCAT functions will probably not be filter or search friendly.

    This is happening because wpDataTables server has problems with parsing of the query and building new queries dynamically (rarely happens, but does sometimes). If you managed to construct a query that works, but only filtering is the problem, to avoid this please prepare a MySQL view (a stored query), which will return the data that you need, call it e.g. “view1” and then build a wpDataTabled based on a simple query like “SELECT * FROM view1″.

    Please note some this when working with the server-side processing feature:

    • Please do not use “LIMIT” in the SELECT statement. wpDataTables adds it automatically and it will be overridden.
    • Please do not use “ORDER BY” in the SELECT statement. wpDataTables has its own sorting engine so it makes no sense to use MySQL’s sorting, since it will be overridden. Also, server-side processing feature adds this part of statement automatically when users trigger the sorting on the front-end, and having it in initial statement may cause the table to crash.

    To display only today's data, you'd probably need to add something like this:

    select * from dt_table where  `date` = CURDATE()
    

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • abanksob1 replied

    thanks for the information ive figured out how to pull the post from wordpress correctly , my skills on sql are not so good i am aameture wheredo i put this code at for to show only for today post

    select * from dt_table where  `date` = CURDATE()"
    

  • abanksob1 replied

    how much would you charge to make a simple wordpress post table where its shows only current day post and also able to link to the title of the post with its original meta link , this is what i am trying to do . the table is gona have 

    post id , post date, post title, post author , post category .

  •  2,572
    Aleksandar replied

    Hello again abanksob1.

    Unfortunately, we're extremely busy at the moment, so we're not accepting any custom work. However, this does sound like a relatively easy task, so I'm willing to take a look.

    Could you tell me what you need, where you want to pull it from, and provide me a temporary WP-admin login for your site, so I could log in and take a look ‘from the inside’? We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

    If it cannot be done easily, I'll tell you right away to look elsewhere, and if it could be done fast enough so other work doesn't suffer, I'll send you a quote.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • abanksob1 replied

    basically i am trying to build WordPress table from the post where it pulls only post from today's date and with the original meta link
    need 6 columns for :

    post id , post date , post author, post category, post title, post original meta link
    post title should be linked to the original meta link, I tried using
    POST_TITLE_WITH_LINK_TO_POST but it is sending users to the internal link  each post have an external link


    here is the login info for the demo site

    username : Aleksandar
    password: Aleksandar@24111984

    https://avidanbanks.com/demosite/wp-admin

  •  2,572
    Aleksandar replied

    Hello again abanksob1.

    Please take a look at this table and let me know if it looks good.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • abanksob1 replied

    you the man can i appreciate it alot can you tell me what was the sql query for to show todays date for the feature 

  • abanksob1 replied

    basically it will be yesterday and one for daybefore yesterday 

  •  2,572
    Aleksandar replied

    Hey abanksob1

    You're welcome.

    I cannot log in anymore with those credentials, but I believe it's something like this:

    date >= CURDATE()

    To apply it for an interval, you could try with this:

    date >= DATE_SUB(CURDATE(), INTERVAL 1 DAY)

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • abanksob1 replied

    thanks for the reply iv alread used that code and few others that i found on stakeover flow they all oull data from the the previous date and onwards i need only that previous date so had an idea to put a condition logic on the table to earse everything or clear cell if its 00:00 and onwards , here are the codes i found 

    SELECT SUBDATE(CURDATE(), 1);

    or

    SELECT CURDATE() - INTERVAL 1 DAY;

    or

    SELECT SUBDATE(CURDATE(), INTERVAL 1 DAY);

    or

    SELECT DATE_SUB(CURDATE(), INTERVAL 1 DAY);

    there are few other things custimization that are needed  such as refreshing the table autonaticly for sql that option is not there , i sign up to the website u sent me hopefully ill get a response from one of the developers , you guys are awsome anyways i do appreciate the help 

  •  2,572
    Aleksandar replied

    Hi again abanksob1.

    You're welcome.

    Just a note, though. You need to place ">=" between "SELECT" and "DATE_SUB" in order for these commands to work.

    If you have any more questions, please feel free to open a new ticket, and we'll gladly help.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • abanksob1 replied

    hey on my page it take forever to load then i get this message

     DataTables warning: table id=table_1 - Ajax error. For more information about this error, please see http://datatables.net/tn/7

    how can i speed up the page load 

    here is my page 

    https://news-il.co.il/%d7%90%d7%a8%d7%9b%d7%99%d7%95%d7%9f/

  •  2,572
    Aleksandar replied

    Hello again abanksob1.

    It did take around 45 seconds to load the page, which is rather extreme, but it didn't prompt the error.

    Also, do you have mod_security enabled or some other security plugin? If so, can you try turning them off, so we see if the issue is connected? They tend to block the admin Ajax calls, and usually creators of those security plugins just white-list wpDataTables, and the issue is resolved.

    The loading speed depends mostly on your server performance and hosting plan, but can also be linked to the amount of content loaded on the page, the query, the amount of plugins you have active, and so on.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • abanksob1 replied

    hey i went over all setting currentlyi have every thing going threw cloudflare and when its enable it slows down the loading of website when i deactivate the plugin then website is fast , its a shared hosting account do ypu know how i can fix this what are the configuration for cloudflare i also do have a security plugin only threw cloudflare

  •  2,572
    Aleksandar replied

    Hi again abanksob1

    Well, I can't say much about cloudflare, but if that's slowing down your website, my advice would be to really reconsider changing your hosting plan. However, that's something you should check with them - see if they have some better hosting plan for you. It's not just about the tables, but the general feel of your site is going to turn people away if they have to wait for a whole minute until a page loads. Just a friendly advice.

    When you switch it off - does the issue with the tables go away too?

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables