Advanced Custom Fields Issue - php

So, there's a code that I've recycled multiple times on sites as it's well liked by my company. I am trying to update and recreate my portfolio due to my old hosting company wiping my entire file system. My fault for not having a back up, but lesson learned. Makattak.com Using this code here, I am unable to get anything to display.
A site I've used it on is here: Bowhunting.com
Here is a photo of my repeater field in ACF. I followed the same structure but still cannot get anything to display.
Can anyone offer some suggestions as far as what I am doing wrong? I've tried cutting things out, I've tried rebuilding from scratch, I just can't seem to get the loop to happen.
I am using the latest version of WordPress, and the latest purchased copy of ACF: Advanced.

I know this my sounds stupid but, did you assign the template to a page and select the page on the wordpress Reading settings?

Thanks to both Dre and Raul Cruz, I was able to find the issue.
I didn't set the Reading Settings to Home Page, static.
I revamped my code to change the_sub_field('field'); to
get_sub_field('field')
a change I made while debugging but didn't revert back
There was an issue with my syntax, and when writing the code back in, line by line, testing after each line, I was able to get what I needed back in working order
Thank you both for the help.

Related

Wordpress the_content issue

enter image description here
Hello,
I'm trying to solve this problem in Wordpress. I need to have my permalink structures as post names, so making them plain is not an option even if it fixes this problem (it generates others).
As I've seen:
I need to put into the file manager, because I can't access and edit my page using elementor.
Now I have tried to change the php for different reasons the last days, like colors etc., but always, like now, I can save my changes but nothing changes at all.. Am I doing something wrong?
Thanks a lot!
Marc White
according to me there is something wrong with your data. As some github like pass custom php function to solve this error.
Github link for the related issue- Link
If you still face issue just lemme. I think will help you.

WP site generating weird session id next to page url

Few pages of my WordPress site generating weird session id next to page url for example http://www.example.com/?wvsessionid=wvac7224adb9a344b4b05354762584a621 . I don’t know where this coming from. bad thing is google indexing them & it creating duplicate content issue. where should i look for this issue & any idea , how I can solve it?
This could be one of two things:
some plugin is generating this, in that case search in plugins code to look for wvsessionid phrase which will tell you which plugin is generating this and why.
another option is some injected code due to hacking but that less likely as this parameter wouldn't be of much help.

Wordpress: You are not allowed to edit this post (even tough I am admin)

When trying to create or edit posts in wordpress, the error message "You are not allowed to edit this post" appears. As mentioned, my user is an administrator. With a different administrator account I still have the same problem.
I first thought the problem might be caused by my wordpress template, so I tried to change it back to one of the default templates but the issues unfortunately still exists.
The second step was to download wordpress, unpack it and replace the wp-config.php with my own wp-config.php to give the new installation access to my old database. After that the problem still existed!
After that I came to the conclusion that the problem can only be inside the database, right?
This is a screenshot of SequelPro looking at the wp_usermeta table of my wordpress database. Maybe someone knows what could be wrong with this? Where else could there be some misconfigurations that causes this problem?
Thank you! :)
Yours Sincerely, Felix
I found out that the problem was that somehow there were no primary keys in my tables. That caused all the trouble I had :/

Prevent script from overriding page title in Joomla 1.5

I'm working on a project that is built on Joomla 1.5. I've been trying to set the title of the pages for different views and everything works fine except for that title of the document is set to as the project name once the document is loaded completely. However, I can clearly see the title set by me as the document title while it is loading. Also, when I checked in firebug, I found that some script is overwriting document title over and over again on a span of 2 sec. I checked almost all the settings pages to disable this but couldn't find any such option; I'm not a Joomla expert. Also, I don't want to delete that script manually, so if someone has any idea about how to fix it, I'd really appreciate it.
PS: I searched for solution before posting this so please, no -1.
So apparently, there was a script in a file chat.js on our server that was updating the page title every 2 seconds. So lame that I didn't realize it could be such a minor mistake. I wasn't able to find it as it was being included only in some views. Anyways, sorry for wasting your times. If anyone of you've faced a similar issue, please do check your script in Javascript debugger.

wordpress posts not showing in frontend or backend

I installed a new wordpress blog today (v3.4.2, Windows 2008 R2, IIS7.5, SQL Server 2008 R2). I have already done this several times, and I have never had this happen before.
When I create a new post and publish it, everything looks fine. When I go to view it through the link in the edit post page, everything looks good. Then I open the blog homepage and I don't see the post in the latest posts. When I go back in to wp-admin I see that there is (1) post in "all posts", but the list is empty.
I tried creating a second post, and when I view it from the editing page, I can see it and the one I "lost" before. I tried to see maybe there was a difference in the URLs, but they are the same.
Anyone seen this before? It is driving me insane.
I tried turning off all plugins and also switching to another theme, and nothing.
I found the solution. Apparently, due to some regex issue in the abstraction plugin, mysql's limit was not being translated to sql server's top.
Found the solutions here:
https://wordpress.stackexchange.com/questions/51134/dashboard-says-no-posts-found-even-though-there-are-some-posts
Give credit where credit is due :)

Categories